:root {
    --white: #ffffff;
    --dark: #0f172a;
    --card-dark: #111827;
    --slate: #334155;
    --blue: #2563eb;
    --text-soft: #cbd5e1;
    --ink: #0f172a;
    --muted: #64748b;
    --page: #f8fafc;
    --line: #dbe3ee;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(51, 65, 85, 0.35);
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-fallback {
    display: none;
    place-items: center;
    width: 100%;
    height: 100%;
    font-weight: 900;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), #0f172a);
}

.brand strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1;
}

.brand small {
    display: block;
    margin-top: 5px;
    color: var(--text-soft);
    font-size: 0.72rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 600;
}

.site-nav a {
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-nav a:hover {
    color: var(--white);
}

.nav-cta {
    padding: 11px 16px;
    border: 1px solid rgba(37, 99, 235, 0.7);
    border-radius: 8px;
    color: var(--white);
    background: rgba(37, 99, 235, 0.18);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(203, 213, 225, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--white);
}

.section-dark {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.28), transparent 34%),
        linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
        var(--dark);
    background-size: 100% 100%, 42px 42px, 42px 42px;
}

.hero {
    padding: 88px 0 76px;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
    gap: 58px;
    align-items: center;
}

.hero-grid::before {
    content: "";
    position: absolute;
    right: -8%;
    top: 12%;
    width: min(460px, 44vw);
    height: min(460px, 44vw);
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(37, 99, 235, 0.32), rgba(14, 165, 233, 0.16) 38%, transparent 68%);
    filter: blur(18px);
    opacity: 0.82;
    pointer-events: none;
    animation: glow-drift 9s ease-in-out infinite alternate;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 28px;
    height: 2px;
    background: var(--blue);
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1 {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: clamp(2.7rem, 6vw, 5.35rem);
    line-height: 0.98;
    font-weight: 900;
}

.hero-copy .eyebrow,
.hero h1,
.hero-subtitle,
.hero-actions,
.metric-row,
.code-card {
    opacity: 0;
    transform: translateY(18px);
    animation: fade-up 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero h1 {
    animation-delay: 90ms;
}

.hero-subtitle {
    animation-delay: 180ms;
}

.hero-actions {
    animation-delay: 270ms;
}

.metric-row {
    animation-delay: 360ms;
}

.code-card {
    position: relative;
    z-index: 1;
    animation:
        fade-up 820ms cubic-bezier(0.22, 1, 0.36, 1) 260ms forwards,
        card-float 7s ease-in-out 1.2s infinite;
}

.hero-subtitle {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 1.13rem;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.btn-primary {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.32);
}

.btn-secondary {
    color: var(--white);
    border: 1px solid rgba(203, 213, 225, 0.26);
    background: rgba(255, 255, 255, 0.06);
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 560px;
    margin-top: 38px;
}

.metric-row div {
    padding: 16px;
    border: 1px solid rgba(203, 213, 225, 0.18);
    border-radius: 10px;
    background: rgba(17, 24, 39, 0.72);
}

.metric-row strong,
.metric-row span {
    display: block;
}

.metric-row strong {
    margin-bottom: 4px;
    font-size: 1.35rem;
}

.metric-row span {
    color: var(--text-soft);
    font-size: 0.84rem;
}

.code-card {
    border: 1px solid rgba(203, 213, 225, 0.22);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.98));
    box-shadow: 0 28px 90px rgba(37, 99, 235, 0.22);
    overflow: hidden;
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(203, 213, 225, 0.16);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
}

.red { background: #ef4444; }
.yellow { background: #f59e0b; }
.green { background: #22c55e; }

.window-bar small {
    margin-left: 8px;
    color: var(--text-soft);
}

pre {
    margin: 0;
    padding: 26px 24px;
    overflow-x: auto;
    color: #dbeafe;
    font-size: 0.94rem;
    line-height: 1.75;
}

.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 0 24px 24px;
}

.stack-list span,
.tech-stack span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(37, 99, 235, 0.28);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.12);
    font-size: 0.84rem;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.stack-list span:hover,
.tech-stack span:hover {
    transform: translateY(-2px) scale(1.03);
    border-color: rgba(37, 99, 235, 0.58);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
}

.section-light {
    padding: 82px 0;
    background:
        linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px),
        var(--page);
    background-size: 38px 38px;
}

.projects-section {
    padding-top: 12px;
}

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

.section-heading.compact {
    margin-bottom: 24px;
}

.section-heading h2,
.about h2,
.contact h2 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    font-weight: 900;
}

.section-heading p:last-child,
.contact p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.card-grid {
    display: grid;
    gap: 20px;
}

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

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

.info-card,
.project-card {
    min-height: 100%;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.info-card:hover,
.project-card:hover {
    transform: translateY(-7px);
    border-color: rgba(37, 99, 235, 0.56);
    box-shadow: 0 24px 70px rgba(37, 99, 235, 0.16), 0 10px 30px rgba(15, 23, 42, 0.08);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 10px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), #0f172a);
    font-weight: 900;
}

.info-card h3,
.project-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.info-card p,
.project-card p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.68;
}

.badge {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--blue);
    background: #dbeafe;
    font-size: 0.76rem;
    font-weight: 900;
}

.project-thumb {
    display: grid;
    place-items: center;
    height: 156px;
    margin: -8px -8px 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.34), transparent 32%),
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        #0f172a;
    background-size: 100% 100%, 28px 28px, 28px 28px;
}

.project-thumb img,
.project-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-thumb span,
.project-detail-image span {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(203, 213, 225, 0.25);
    border-radius: 16px;
    color: var(--white);
    background: rgba(37, 99, 235, 0.22);
    font-size: 1.65rem;
    font-weight: 900;
}

.project-card a {
    display: inline-flex;
    margin-top: 20px;
    color: var(--blue);
    font-weight: 900;
}

.project-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.project-filter-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: var(--white);
    font-weight: 800;
    transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.project-filter-tabs a:hover,
.project-filter-tabs a.is-active {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.45);
    color: var(--blue);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12);
}

.about {
    padding: 82px 0;
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
    gap: 44px;
    align-items: start;
}

.about-page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    gap: 56px;
    align-items: center;
}

.about-panel,
.contact-form {
    border: 1px solid rgba(203, 213, 225, 0.2);
    border-radius: 14px;
    background: rgba(17, 24, 39, 0.82);
    box-shadow: 0 28px 90px rgba(37, 99, 235, 0.16);
}

.about-panel {
    padding: 30px;
}

.about-panel p {
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.85;
}

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

.values-grid span {
    padding: 14px;
    border: 1px solid rgba(203, 213, 225, 0.16);
    border-radius: 10px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    font-weight: 700;
}

.profile-photo-card {
    position: relative;
    width: min(100%, 420px);
    max-width: 420px;
    aspect-ratio: 3 / 4;
    margin-top: 32px;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.22);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.8);
    box-shadow: 0 24px 80px rgba(37, 99, 235, 0.2);
}

.profile-photo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.32), transparent 34%),
        linear-gradient(transparent, rgba(15, 23, 42, 0.15));
    pointer-events: none;
}

.profile-photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.profile-photo-card.large {
    width: min(100%, 440px);
    aspect-ratio: 4 / 5;
    max-width: none;
    margin-top: 0;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.tech-stack span {
    color: var(--blue);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.contact {
    padding: 82px 0;
}

.contact p {
    max-width: 480px;
    color: var(--text-soft);
}

.contact-link-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.contact-link-panel a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(203, 213, 225, 0.2);
    border-radius: 8px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    font-weight: 800;
}

.contact-form {
    display: grid;
    gap: 18px;
    padding: 28px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(203, 213, 225, 0.22);
    border-radius: 8px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.96);
    outline: none;
    font: inherit;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.field small {
    display: block;
    margin-top: 7px;
    color: #fca5a5;
    font-weight: 700;
}

.success-message {
    margin-top: 28px;
    padding: 14px 16px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 10px;
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.12);
    font-weight: 800;
}

.narrow {
    max-width: 860px;
}

.project-hero {
    padding: 84px 0 70px;
}

.page-hero {
    padding: 84px 0 70px;
}

.page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1;
    font-weight: 900;
}

.page-hero p:last-child {
    color: var(--text-soft);
    font-size: 1.08rem;
    line-height: 1.8;
}

.project-hero h1 {
    margin: 18px 0;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 1;
    font-weight: 900;
}

.project-hero p,
.project-detail p {
    color: var(--text-soft);
    font-size: 1.08rem;
    line-height: 1.8;
}

.project-detail p {
    color: var(--muted);
}

.project-detail h2,
.project-detail h3 {
    margin-bottom: 16px;
}

.project-detail h3 {
    margin-top: 34px;
}

.project-detail-image {
    display: grid;
    place-items: center;
    min-height: 320px;
    margin-bottom: 34px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.34), transparent 32%),
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        #0f172a;
    background-size: 100% 100%, 32px 32px, 32px 32px;
    box-shadow: var(--shadow);
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.btn-secondary.light {
    color: var(--blue);
    border-color: rgba(37, 99, 235, 0.32);
    background: var(--white);
}

.back-link {
    display: inline-flex;
    margin-bottom: 22px;
    color: var(--text-soft);
    font-weight: 800;
}

.dark-badge {
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.25);
}

.admin-body,
.admin-login-body {
    min-height: 100vh;
    background:
        linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        #0f172a;
    background-size: 42px 42px;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 680ms ease, transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

@keyframes glow-drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.72;
    }
    to {
        transform: translate3d(-22px, 18px, 0) scale(1.08);
        opacity: 0.95;
    }
}

.admin-body {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    color: var(--white);
}

.admin-mobile-topbar {
    display: none;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    border-right: 1px solid rgba(203, 213, 225, 0.16);
    background: rgba(8, 17, 31, 0.86);
}

.admin-brand {
    display: block;
    margin-bottom: 30px;
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 900;
}

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

.admin-sidebar nav a,
.admin-sidebar button {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-soft);
    background: transparent;
    text-align: left;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.admin-sidebar nav a:hover,
.admin-sidebar button:hover {
    border-color: rgba(37, 99, 235, 0.38);
    color: var(--white);
    background: rgba(37, 99, 235, 0.12);
}

.admin-sidebar form {
    margin-top: 28px;
}

.admin-main {
    padding: 34px;
}

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

.admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-header p {
    margin-bottom: 6px;
    color: var(--text-soft);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-header h1 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

.admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    color: var(--white);
    background: var(--blue);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.admin-button.secondary {
    border: 1px solid rgba(203, 213, 225, 0.2);
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.06);
}

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.admin-filters input,
.admin-filters select {
    flex: 1 1 180px;
    width: auto;
    max-width: 100%;
    min-height: 42px;
    border: 1px solid rgba(203, 213, 225, 0.2);
    border-radius: 8px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.96);
    padding: 0 12px;
    font: inherit;
}

.admin-filters input {
    flex-basis: 240px;
}

.admin-filters .admin-button {
    flex: 0 0 auto;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.status-published,
.status-replied {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.14);
}

.status-draft,
.status-read {
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.16);
}

.status-archived {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.16);
}

.status-new {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.16);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

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

.admin-stats div,
.admin-panel,
.admin-login-card {
    border: 1px solid rgba(203, 213, 225, 0.16);
    border-radius: 14px;
    background: rgba(17, 24, 39, 0.88);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
}

.admin-stats div {
    padding: 22px;
}

.admin-stats span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-weight: 800;
}

.admin-stats strong {
    font-size: 2.2rem;
}

.admin-panel {
    padding: 22px;
    max-width: 100%;
    overflow-x: auto;
}

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

.admin-panel-heading h2 {
    margin-bottom: 0;
}

.admin-panel-heading a,
.admin-table a,
.admin-list a,
.enquiry-detail a {
    color: #93c5fd;
    font-weight: 900;
}

.admin-list {
    display: grid;
    gap: 10px;
}

.admin-list a {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid rgba(203, 213, 225, 0.14);
    border-radius: 10px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
}

.admin-list-item {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid rgba(203, 213, 225, 0.14);
    border-radius: 10px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
}

.admin-list span,
.admin-list-item span {
    color: var(--text-soft);
    font-size: 0.9rem;
}

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

.admin-inline-actions form {
    margin: 0;
}

.admin-inline-actions button {
    border: 0;
    color: #fca5a5;
    background: transparent;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.admin-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(203, 213, 225, 0.12);
    text-align: left;
}

.admin-table-image {
    width: 72px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.admin-empty-image {
    color: var(--text-soft);
    font-size: 0.86rem;
}

.admin-table th {
    color: var(--text-soft);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-form {
    display: grid;
    gap: 18px;
    max-width: 900px;
}

.admin-form h2 {
    margin: 12px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(203, 213, 225, 0.14);
    color: var(--white);
    font-size: 1.15rem;
}

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

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    font-weight: 800;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
}

.admin-actions {
    margin-top: 6px;
}

.admin-image-preview {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-image-preview img {
    width: min(100%, 360px);
    height: 210px;
    border: 1px solid rgba(203, 213, 225, 0.16);
    border-radius: 12px;
    object-fit: cover;
}

.admin-image-preview.small-preview img {
    width: 160px;
    height: 110px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
}

.admin-image-preview.favicon-preview img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
}

.admin-image-preview.profile-preview img {
    width: 180px;
    height: 230px;
    object-fit: cover;
    object-position: center top;
}

.help-text {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.delete-form {
    margin-top: 18px;
}

.delete-form button {
    border: 0;
    color: #fca5a5;
    background: transparent;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.admin-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 10px;
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.12);
    font-weight: 800;
}

.admin-login-body {
    display: grid;
    place-items: center;
    padding: 20px;
    color: var(--white);
}

.admin-login-card {
    width: min(100%, 440px);
    padding: 30px;
}

.admin-login-card h1 {
    margin-bottom: 10px;
}

.admin-login-card p {
    color: var(--text-soft);
}

.admin-login-card form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.enquiry-detail dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 26px;
}

.enquiry-detail dt {
    margin-bottom: 5px;
    color: var(--text-soft);
    font-weight: 800;
}

.enquiry-detail dd {
    margin: 0;
}

.enquiry-detail h2 {
    margin-top: 26px;
}

.enquiry-detail p {
    color: var(--text-soft);
    line-height: 1.8;
}

.status-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin-top: 28px;
}

.status-form label {
    width: 100%;
    color: var(--text-soft);
    font-weight: 800;
}

.status-form select {
    min-height: 42px;
    min-width: 180px;
    border: 1px solid rgba(203, 213, 225, 0.22);
    border-radius: 8px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.96);
    padding: 0 12px;
}

.site-footer {
    position: relative;
    overflow: hidden;
    padding: 54px 0 20px;
    color: var(--text-soft);
    background:
        radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.24), transparent 34%),
        linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        #08111f;
    background-size: 100% 100%, 36px 36px, 36px 36px;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(160px, 0.55fr) minmax(180px, 0.7fr);
    gap: 34px;
    align-items: start;
}

.footer-brand-block {
    max-width: 520px;
}

.footer-brand {
    margin-bottom: 18px;
}

.footer-brand-block strong {
    display: block;
    color: var(--white);
    font-size: 1.15rem;
}

.footer-brand-block p,
.footer-bottom p {
    margin: 8px 0 0;
}

.footer-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.footer-stack span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.12);
    font-size: 0.78rem;
    font-weight: 800;
}

.footer-column h3 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links {
    display: grid;
    gap: 10px;
    font-weight: 700;
}

.footer-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.footer-contact-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(203, 213, 225, 0.16);
    border-radius: 8px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.05);
    font-weight: 800;
}

.footer-links a:hover,
.footer-contact-links a:hover {
    color: var(--white);
    border-color: rgba(37, 99, 235, 0.5);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(203, 213, 225, 0.14);
    font-size: 0.88rem;
}

.footer-bottom a {
    color: var(--text-soft);
    font-weight: 800;
}

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

    .site-nav {
        position: absolute;
        top: 78px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid rgba(203, 213, 225, 0.18);
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    }

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

    .site-nav a {
        padding: 13px 12px;
    }

    .nav-cta {
        margin-top: 8px;
        text-align: center;
    }

    .hero-grid,
    .about-page-hero,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .hero,
    .section-light,
    .about,
    .contact {
        padding: 62px 0;
    }

    .hero-grid {
        gap: 34px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .metric-row,
    .card-grid.four,
    .card-grid.three,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .profile-photo-card,
    .profile-photo-card.large {
        width: min(100%, 340px);
        max-width: 340px;
        margin-right: auto;
        margin-left: auto;
    }

    .code-card pre {
        font-size: 0.78rem;
    }

    .footer-main,
    .footer-bottom {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
    }

    .admin-body {
        display: block;
        grid-template-columns: 1fr;
        padding-top: 68px;
    }

    .admin-mobile-topbar {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 80;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 68px;
        padding: 0 16px;
        border-bottom: 1px solid rgba(203, 213, 225, 0.16);
        background: rgba(8, 17, 31, 0.96);
        backdrop-filter: blur(16px);
    }

    .admin-mobile-topbar a {
        color: var(--white);
        font-weight: 900;
    }

    .admin-mobile-topbar button {
        min-height: 40px;
        padding: 0 14px;
        border: 1px solid rgba(203, 213, 225, 0.22);
        border-radius: 8px;
        color: var(--white);
        background: rgba(37, 99, 235, 0.18);
        font: inherit;
        font-weight: 900;
    }

    .admin-sidebar {
        position: fixed;
        top: 68px;
        right: 12px;
        left: 12px;
        z-index: 70;
        display: none;
        height: auto;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
        padding: 14px;
        border: 1px solid rgba(203, 213, 225, 0.16);
        border-radius: 14px;
        background: rgba(8, 17, 31, 0.98);
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    }

    .admin-sidebar.is-open {
        display: block;
    }

    .admin-brand {
        display: none;
    }

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

    .admin-sidebar nav a,
    .admin-sidebar button {
        padding: 11px 12px;
        font-size: 0.92rem;
    }

    .admin-sidebar form {
        margin-top: 8px;
    }

    .admin-main {
        padding: 18px 14px 28px;
    }

    .admin-header {
        margin-bottom: 18px;
    }

    .admin-header h1 {
        font-size: 2.35rem;
    }

    .admin-header-actions {
        width: 100%;
    }

    .admin-header-actions .admin-button {
        flex: 1 1 140px;
    }

    .admin-header,
    .admin-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-stats,
    .admin-dashboard-grid,
    .admin-form-grid,
    .enquiry-detail dl {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        gap: 12px;
    }

    .admin-stats div {
        padding: 18px;
    }

    .admin-stats strong {
        font-size: 2rem;
    }

    .admin-filters > * {
        flex: 1 1 100%;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

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

    .hero-copy .eyebrow,
    .hero h1,
    .hero-subtitle,
    .hero-actions,
    .metric-row,
    .code-card,
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
