:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --navy: #0f172a;
    --ink: #172033;
    --muted: #667085;
    --line: #e5eaf2;
    --soft: #f5f8fc;
    --white: #ffffff;
    --danger: #dc2626;
    --success: #15803d;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --hero-shift: 0px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px clamp(18px, 5vw, 64px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 234, 242, 0.85);
    backdrop-filter: blur(14px);
}

.brand,
.admin-logo {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--white);
    background: var(--blue);
    border-radius: 8px;
    font-weight: 800;
}

.main-nav {
    display: flex;
    gap: 24px;
    color: #334155;
    font-weight: 700;
}

.main-nav a:hover { color: var(--blue); }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: var(--navy);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    min-height: 780px;
    padding: clamp(48px, 7vw, 88px) clamp(18px, 6vw, 80px);
    color: var(--white);
    background:
        linear-gradient(130deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.86)),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.55), transparent 34%);
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
}

.eyebrow {
    margin: 0 0 12px;
    color: #7dd3fc;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-title {
    max-width: 720px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: clamp(1.12rem, 2vw, 1.45rem);
    font-weight: 700;
}

.hero-text {
    max-width: 700px;
    color: #cbd5e1;
    font-size: 1.08rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.btn-primary { color: var(--white); background: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { color: var(--blue); background: #eaf1ff; }
.btn-danger { color: var(--white); background: var(--danger); }

.hero-photo {
    justify-self: center;
    width: min(430px, 100%);
}

.hero-photo img,
.about-grid img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    width: min(1120px, calc(100% - 36px));
    margin: -58px auto 0;
    position: relative;
    z-index: 2;
}

.highlights article,
.admin-cards article,
.admin-panel,
.login-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.highlights article {
    padding: 24px;
}

.highlights strong {
    display: block;
    color: var(--blue);
    font-size: 1.65rem;
}

.highlights span { color: var(--muted); font-weight: 700; }

.section {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    padding: 96px 0 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
}

.about-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 42px;
    align-items: start;
}

.about-grid p {
    margin-top: 0;
    color: #475569;
    font-size: 1.06rem;
}

.profile-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 0;
}

.profile-list div {
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.profile-list dt { color: var(--muted); font-weight: 800; }
.profile-list dd { margin: 4px 0 0; color: var(--navy); font-weight: 800; }

.timeline {
    display: grid;
    gap: 18px;
    position: relative;
}

.timeline-item {
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.timeline-item span { color: var(--blue); font-weight: 900; }
.timeline-item h3 { margin: 8px 0 4px; color: var(--navy); }
.company { color: var(--muted); font-weight: 800; }

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

.skill {
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.skill div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    font-weight: 900;
}

progress {
    width: 100%;
    height: 12px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e2e8f0;
}

progress::-webkit-progress-bar { background: #e2e8f0; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--blue); border-radius: 999px; }

.contact { padding-bottom: 96px; }

.contact-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
    gap: 32px;
    align-items: end;
    margin-bottom: 28px;
}

.contact-heading .section-heading {
    margin-bottom: 0;
}

.contact-heading > p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

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

.contact-form {
    max-width: none;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.09);
}

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

.message-field {
    grid-column: span 2;
}

.captcha-field {
    align-self: start;
}

.contact-submit {
    justify-self: end;
    min-width: 220px;
    margin-top: 6px;
}

label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    border: 1px solid #cfd8e5;
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.contact-form input,
.contact-form textarea {
    min-height: 56px;
    background: #fbfdff;
}

.contact-form textarea {
    min-height: 138px;
}

textarea { resize: vertical; }
input:focus, textarea:focus {
    outline: 3px solid rgba(37, 99, 235, 0.18);
    border-color: var(--blue);
}

.alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.alert.success { color: var(--success); background: #dcfce7; }
.alert.error { color: var(--danger); background: #fee2e2; }

.site-footer {
    padding: 34px 18px;
    color: #cbd5e1;
    text-align: center;
    background: var(--navy);
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 8px;
    color: var(--white);
    background: var(--blue);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
    cursor: pointer;
}

.back-top.is-visible { opacity: 1; pointer-events: auto; }

.fade-in,
.scroll-animate {
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.fade-in.is-visible,
.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.login-body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--navy), #1e3a8a);
}

.login-card {
    width: min(430px, 100%);
    padding: 34px;
}

.login-card h1 { margin-bottom: 4px; color: var(--navy); }
.login-card p { color: var(--muted); }

.admin-body {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    background: #f8fafc;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    background: var(--navy);
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
    margin-top: 30px;
}

.admin-sidebar nav a {
    padding: 12px;
    color: #dbeafe;
    border-radius: 8px;
    font-weight: 800;
}

.admin-sidebar nav a:hover { background: rgba(255, 255, 255, 0.1); }

.admin-main {
    min-width: 0;
    padding: 26px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.admin-topbar h1 { margin: 0; color: var(--navy); }
.admin-topbar span { color: var(--muted); font-weight: 800; }

.admin-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.admin-cards article { padding: 22px; }
.admin-cards strong { display: block; color: var(--blue); font-size: 2rem; }
.admin-cards span { color: var(--muted); font-weight: 800; }

.admin-panel {
    margin-bottom: 22px;
    padding: 22px;
}

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

.admin-panel h2 { margin-top: 0; color: var(--navy); }

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

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 13px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
}

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

.actions form { margin: 0; }

@media (max-width: 880px) {
    .menu-toggle { display: block; }

    .main-nav {
        position: absolute;
        top: 77px;
        left: 18px;
        right: 18px;
        display: none;
        flex-direction: column;
        padding: 18px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open { display: flex; }

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

    .hero-photo { width: min(330px, 100%); }

    .highlights,
    .skills-grid,
    .admin-cards,
    .form-grid {
        grid-template-columns: 1fr;
    }

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

    .profile-list { grid-template-columns: 1fr; }

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

    .admin-sidebar {
        position: static;
        height: auto;
    }

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

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

@media (max-width: 520px) {
    .hero-actions,
    .panel-heading,
    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn { width: 100%; }
    .admin-main { padding: 18px; }
    .admin-sidebar nav { grid-template-columns: 1fr; }
}

/* Visual inspirado na referência enviada */
.site-header {
    position: absolute;
    inset: 0 0 auto;
    background: transparent;
    border-bottom: 0;
    color: var(--white);
}

.brand-word,
.admin-word {
    width: auto;
    height: auto;
    background: transparent;
    color: var(--white);
    border-radius: 0;
    font-size: 1.45rem;
    letter-spacing: 0;
}

.brand-word span,
.site-footer h2 span {
    color: var(--blue);
}

.main-nav {
    align-items: center;
    color: #e5eefb;
    font-size: 0.92rem;
}

.main-nav .nav-cta {
    padding: 10px 16px;
    color: var(--white);
    background: var(--blue);
    border-radius: 8px;
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus {
    color: var(--white);
    background: var(--blue-dark);
}

.hero {
    min-height: 720px;
    padding-top: 120px;
    background:
        linear-gradient(90deg, rgba(5, 16, 35, 0.98), rgba(8, 35, 73, 0.94)),
        linear-gradient(135deg, rgba(37, 99, 235, 0.18), transparent 46%);
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 80px 0 0 42%;
    background:
        linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle, #000 0%, transparent 70%);
    pointer-events: none;
}

.hero-content,
.hero-photo {
    position: relative;
    z-index: 1;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 8px 12px;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.availability::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.hero h1 {
    max-width: 620px;
    font-size: clamp(46px, 6vw, 72px);
    letter-spacing: 0;
}

.hero-title {
    color: #3b82f6;
}

.hero-photo {
    width: min(390px, 78vw);
    isolation: isolate;
}

.hero-photo::before {
    content: "";
    position: absolute;
    inset: -16px;
    border: 3px solid #2482ff;
    border-radius: 50%;
    box-shadow: 0 0 26px rgba(37, 99, 235, 0.9), inset 0 0 20px rgba(37, 99, 235, 0.45);
    z-index: -1;
}

.hero-photo img {
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.hero-badge {
    position: absolute;
    right: -22px;
    bottom: 18px;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    padding: 10px;
    color: var(--white);
    text-align: center;
    background: var(--blue);
    border-radius: 50%;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.45);
}

.hero-badge strong {
    font-size: 1.8rem;
    line-height: 1;
}

.hero-badge span {
    font-size: 0.58rem;
    font-weight: 900;
    text-transform: uppercase;
}

.btn {
    gap: 8px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
}

.btn-secondary {
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.section .btn-secondary,
.admin-main .btn-secondary {
    color: var(--blue);
    background: #eff6ff;
    border-color: #bfdbfe;
}

.highlights {
    gap: 14px;
    margin-top: -50px;
}

.highlights article {
    display: grid;
    place-items: center;
    min-height: 166px;
    padding: 28px 18px;
    text-align: center;
}

.metric-icon,
.card-icon,
.timeline-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    color: var(--blue);
    background: #eef5ff;
    border-radius: 50%;
    font-weight: 900;
}

.section {
    width: min(1160px, calc(100% - 44px));
}

.eyebrow {
    color: var(--blue);
}

.about-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
    align-items: center;
}

.about-visual {
    position: relative;
    min-height: 310px;
    border-radius: 8px;
    background: linear-gradient(145deg, #f8fbff, #eaf3ff);
    overflow: hidden;
}

.screen-card {
    position: absolute;
    top: 62px;
    left: 72px;
    display: grid;
    place-items: center;
    width: 220px;
    height: 145px;
    color: var(--blue);
    background: var(--white);
    border: 12px solid #dbeafe;
    border-radius: 8px;
    box-shadow: 0 24px 54px rgba(37, 99, 235, 0.18);
    font-size: 2.8rem;
    font-weight: 900;
}

.screen-card::after {
    content: "";
    position: absolute;
    left: 72px;
    right: 72px;
    bottom: -42px;
    height: 42px;
    background: #bfdbfe;
    clip-path: polygon(38% 0, 62% 0, 76% 100%, 24% 100%);
}

.server-stack {
    position: absolute;
    left: 36px;
    bottom: 56px;
    width: 58px;
    height: 86px;
    background: repeating-linear-gradient(to bottom, #3b82f6 0 20px, #1d4ed8 20px 28px);
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.22);
}

.wp-mark {
    position: absolute;
    right: 54px;
    bottom: 54px;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    color: var(--blue);
    background: var(--white);
    border: 6px solid #bfdbfe;
    border-radius: 50%;
    font: 900 2.2rem Georgia, serif;
}

.inline-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    max-width: none;
}

.resume-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-height: 46px;
    padding: 10px 16px 10px 12px;
    color: var(--blue);
    background: var(--white);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.12);
    font-size: 0.94rem;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.resume-link::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 10px;
    background: linear-gradient(90deg, #2563eb, #93c5fd, #2563eb);
    background-size: 220% 100%;
    animation: resumeBorder 2.2s linear infinite;
}

.resume-link::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: 7px;
    background: var(--white);
}

.resume-link span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--white);
    background: var(--blue);
    border-radius: 8px;
    font-size: 0.78rem;
    letter-spacing: 0;
}

.resume-link:hover {
    color: var(--white);
    background: var(--blue);
    border-color: var(--blue);
    transform: translateY(-2px);
}

.resume-link:hover span {
    color: var(--blue);
    background: var(--white);
}

.resume-link:hover::after {
    background: var(--blue);
}

@keyframes resumeBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 220% 50%; }
}

.timeline {
    gap: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) 140px;
    gap: 18px;
    align-items: start;
    padding: 24px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.timeline-item h3 {
    margin-top: 0;
}

.timeline-item time {
    color: var(--navy);
    text-align: right;
    font-size: 0.9rem;
    font-weight: 800;
}

.timeline-icon {
    margin: 0;
    border-radius: 8px;
}

.skills-grid {
    gap: 28px 80px;
}

.skill {
    padding: 0;
    border: 0;
    background: transparent;
}

progress {
    height: 8px;
}

.contact-form {
    max-width: none;
    padding: 28px;
    border: 1px solid var(--line);
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.09);
    background: var(--white);
}

.contact-form .alert {
    grid-column: 1 / -1;
}

.contact-form textarea {
    min-height: 138px;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 42px;
    padding: 46px clamp(22px, 6vw, 80px) 30px;
    text-align: left;
    background: linear-gradient(135deg, #051023, #08234a);
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--white);
}

.site-footer nav,
.site-footer address {
    display: grid;
    gap: 9px;
    font-style: normal;
}

.site-footer strong {
    color: var(--white);
}

.copyright {
    grid-column: 1 / -1;
    margin: 14px 0 0;
    color: #8ca3c7;
    font-size: 0.84rem;
}

.admin-body {
    grid-template-columns: 230px minmax(0, 1fr);
    background: #f8fafc;
}

.admin-sidebar {
    padding: 22px 16px;
    background: linear-gradient(180deg, #071426, #13283f);
}

.admin-logo.admin-word {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    font-size: 0.95rem;
}

.admin-logo.admin-word::before {
    content: "⌂";
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #93c5fd;
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d7e6fb;
    font-size: 0.9rem;
}

.admin-sidebar nav a span {
    width: 22px;
    color: #93c5fd;
    text-align: center;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a:focus {
    background: var(--blue);
    color: var(--white);
}

.admin-main {
    padding: 0 28px 28px;
}

.admin-topbar {
    min-height: 70px;
    margin: 0 -28px 28px;
    padding: 0 28px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.admin-menu {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.2rem;
}

.admin-topbar h1 {
    margin-right: auto;
    font-size: 1.5rem;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

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

.admin-cards article {
    padding: 26px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.admin-cards .card-icon {
    margin-bottom: 18px;
}

.admin-cards small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 700;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
}

.admin-panel {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.password-panel {
    max-width: 720px;
}

.database-panel {
    max-width: 860px;
}

.seo-panel {
    max-width: 920px;
}

.panel-note {
    margin-top: -6px;
    color: var(--muted);
    font-weight: 700;
}

.database-checklist {
    display: grid;
    gap: 12px;
    margin: 22px 0;
}

.database-checklist div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.database-actions {
    display: flex;
    justify-content: flex-end;
}

.quick-summary dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.quick-summary div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.quick-summary dt {
    color: var(--muted);
    font-weight: 800;
}

.quick-summary dd {
    margin: 0;
    color: var(--navy);
    font-weight: 900;
}

.status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.status.read {
    color: #15803d;
    background: #dcfce7;
}

.status.unread {
    color: #b91c1c;
    background: #fee2e2;
}

@media (max-width: 980px) {
    .site-header {
        position: sticky;
        background: #061327;
    }

    .main-nav {
        background: #061327;
        border-color: rgba(255, 255, 255, 0.12);
    }

    .menu-toggle span {
        background: var(--white);
    }

    .contact-form,
    .site-footer,
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .contact-heading,
    .contact-fields {
        grid-template-columns: 1fr 1fr;
    }

    .contact-heading {
        align-items: start;
    }

    .timeline-item {
        grid-template-columns: 56px 1fr;
    }

    .timeline-item time {
        grid-column: 2;
        text-align: left;
    }

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

@media (max-width: 880px) {
    .admin-cards {
        grid-template-columns: 1fr;
    }

    .admin-topbar {
        margin: 0 -18px 22px;
        padding: 0 18px;
    }
}

@media (max-width: 620px) {
    .hero-badge {
        right: 0;
        width: 74px;
        height: 74px;
    }

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

    .inline-heading {
        display: grid;
    }

    .resume-link {
        justify-self: start;
        width: fit-content;
    }

    .contact-heading,
    .contact-fields,
    .message-field {
        grid-template-columns: 1fr;
        grid-column: auto;
    }

    .contact-form {
        padding: 20px;
    }

    .contact-submit {
        width: 100%;
        min-width: 0;
        justify-self: stretch;
    }

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

    .about-visual {
        min-height: 250px;
    }

    .screen-card {
        left: 46px;
        width: 180px;
        height: 120px;
    }
}

/* Animações de rolagem e microinterações */
.hero-content {
    transform: translateY(calc(var(--hero-shift) * 0.35));
}

.hero-photo {
    transform: translateY(calc(var(--hero-shift) * -0.55));
}

.hero-content.scroll-animate.is-visible {
    transform: translateY(calc(var(--hero-shift) * 0.35));
}

.hero-photo.scroll-animate.is-visible {
    transform: translateY(calc(var(--hero-shift) * -0.55));
}

.hero-photo::before {
    animation: heroGlow 3.8s ease-in-out infinite;
}

.hero-badge {
    animation: badgeFloat 4s ease-in-out infinite;
}

.highlights article,
.timeline-item,
.skill,
.about-visual,
.contact-form {
    will-change: transform, opacity;
}

.highlights article {
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s ease;
}

.highlights article:hover,
.admin-cards article:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(37, 99, 235, 0.16);
}

.metric-icon,
.card-icon,
.timeline-icon {
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.highlights article:hover .metric-icon,
.timeline-item:hover .timeline-icon {
    color: var(--white);
    background: var(--blue);
    transform: scale(1.08) rotate(-3deg);
}

.section-heading.scroll-animate {
    transform: translateY(28px);
}

.about-visual.scroll-animate {
    transform: translateX(42px);
}

.about-visual.is-visible .screen-card {
    animation: screenFloat 5s ease-in-out infinite;
}

.about-visual.is-visible .wp-mark {
    animation: badgeFloat 4.5s ease-in-out infinite;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 24px;
    width: 2px;
    background: linear-gradient(var(--blue), rgba(37, 99, 235, 0.08));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline:has(.timeline-item.is-visible)::before {
    transform: scaleY(1);
}

.timeline-item.scroll-animate {
    transform: translateX(-42px);
}

.timeline-item.scroll-animate:nth-child(even) {
    transform: translateX(42px);
}

.timeline-item.scroll-animate.is-visible,
.timeline-item.scroll-animate:nth-child(even).is-visible {
    transform: translateX(0);
}

.skill.scroll-animate {
    transform: translateY(24px) scale(0.98);
}

.skill.scroll-animate.is-visible {
    transform: translateY(0) scale(1);
}

.skill progress {
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.skill progress::-webkit-progress-value {
    transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-form.scroll-animate {
    transform: translateY(30px) scale(0.985);
}

.contact-form.scroll-animate.is-visible {
    transform: translateY(0) scale(1);
}

.site-footer > *.scroll-animate {
    transform: translateY(22px);
}

.back-top {
    transform: translateY(12px) scale(0.94);
}

.back-top.is-visible {
    transform: translateY(0) scale(1);
}

@keyframes heroGlow {
    0%, 100% {
        box-shadow: 0 0 26px rgba(37, 99, 235, 0.75), inset 0 0 20px rgba(37, 99, 235, 0.35);
    }
    50% {
        box-shadow: 0 0 42px rgba(37, 99, 235, 1), inset 0 0 28px rgba(37, 99, 235, 0.55);
    }
}

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

@keyframes screenFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

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

    .fade-in,
    .scroll-animate,
    .timeline-item.scroll-animate,
    .timeline-item.scroll-animate:nth-child(even),
    .about-visual.scroll-animate,
    .skill.scroll-animate,
    .contact-form.scroll-animate,
    .site-footer > *.scroll-animate {
        opacity: 1;
        transform: none;
    }
}

/* Contato: layout final amplo e equilibrado */
.contact {
    width: min(1160px, calc(100% - 44px));
}

.contact-heading {
    display: block;
    max-width: 820px;
    margin-bottom: 32px;
}

.contact-heading .section-heading {
    max-width: none;
    margin-bottom: 30px;
}

.contact-heading .section-heading h2 {
    margin: 0;
    line-height: 1.14;
    padding-bottom: 4px;
}

.contact-heading > p {
    max-width: 760px;
    margin: 0;
    color: var(--navy);
    font-size: 1.05rem;
    line-height: 1.65;
    font-weight: 500;
}

.contact-heading > p.scroll-animate {
    transform: translateY(18px);
}

.contact-heading > p.scroll-animate.is-visible {
    transform: translateY(0);
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    align-items: end;
    width: 100%;
    max-width: none;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.contact-form .alert {
    grid-column: 1 / -1;
}

.contact-fields {
    display: contents;
}

.contact-fields label {
    grid-column: span 3;
}

.contact-fields .message-field {
    grid-column: 1 / -1;
}

.contact-fields .captcha-field {
    grid-column: span 4;
}

.contact-submit {
    grid-column: span 4;
    align-self: end;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 56px;
    margin: 0;
}

.contact-submit:disabled,
.contact-submit[disabled] {
    cursor: not-allowed;
    opacity: 0.52;
    filter: grayscale(0.25);
    box-shadow: none;
}

.contact-submit:disabled:hover,
.contact-submit[disabled]:hover {
    background: var(--blue);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border-color: #cbd5e1;
    background: var(--white);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.contact-form textarea {
    min-height: 150px;
}

@media (max-width: 1080px) {
    .contact-fields label {
        grid-column: span 6;
    }

    .contact-fields .message-field,
    .contact-fields .captcha-field,
    .contact-submit {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .contact {
        width: min(100% - 32px, 1160px);
    }

    .contact-fields label,
    .contact-fields .message-field,
    .contact-fields .captcha-field,
    .contact-submit {
        grid-column: 1 / -1;
    }
}

/* Cabeçalho fixo e logo sem quebra */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    min-height: 76px;
    background: transparent;
    border-bottom: 1px solid transparent;
    color: var(--white);
    backdrop-filter: blur(14px);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(5, 16, 35, 0.92);
    border-bottom-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.16);
}

.brand.brand-word {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    width: auto;
    min-width: max-content;
    height: auto;
    white-space: nowrap;
    line-height: 1;
}

.brand.brand-word span {
    display: inline;
    margin-left: 0;
    line-height: 1;
}

@media (max-width: 980px) {
    .site-header {
        position: fixed;
    }
}
