﻿@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
    --bg-1: #050d19;
    --bg-2: #102742;
    --panel: rgba(9, 26, 44, 0.8);
    --panel-2: rgba(7, 20, 35, 0.7);
    --border: rgba(255, 255, 255, 0.16);
    --text: #ecf4ff;
    --muted: #9fb7d2;
    --brand: #2ec3ff;
    --brand-2: #41e0af;
    --warn: #ffd18f;
    --ok-bg: rgba(39, 170, 112, 0.16);
    --ok-text: #b2f4cf;
    --err-bg: rgba(221, 70, 95, 0.24);
    --err-text: #ffd1dc;
    --shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 9% 12%, #1d527f 0%, var(--bg-1) 40%, #030913 100%);
}

a {
    color: #9bdfff;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(580px circle at 92% -8%, rgba(46, 195, 255, 0.22), transparent 68%),
        radial-gradient(640px circle at -14% 106%, rgba(65, 224, 175, 0.16), transparent 65%);
}

.container {
    width: min(1160px, 92vw);
    margin: 30px auto 54px;
    position: relative;
    z-index: 1;
}

.glass {
    background: linear-gradient(160deg, var(--panel), var(--panel-2));
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(9px);
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp 0.6s ease forwards;
}

.floaty {
    animation: bob 5s ease-in-out infinite;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    margin-bottom: 22px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-block p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(130deg, var(--brand), var(--brand-2));
    color: #06253b;
}

.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
    padding: 36px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    right: -90px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(46, 195, 255, 0.28), transparent 70%);
}

.badge {
    display: inline-flex;
    font-size: 11px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    border: 1px solid rgba(152, 223, 255, 0.38);
    color: #c6edff;
    border-radius: 999px;
    padding: 6px 10px;
    margin: 0 0 12px;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.2;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 50px);
    max-width: 14ch;
    margin-bottom: 12px;
}

.lead {
    color: var(--muted);
    max-width: 58ch;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.hero-stats {
    display: grid;
    gap: 12px;
}

.hero-stats article {
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(7, 20, 35, 0.68);
}

.hero-stats h3 {
    font-size: 34px;
    margin-bottom: 4px;
}

.hero-stats p,
.section-head p,
.project-card p,
.project-content,
.admin-top p,
.auth-brand p,
.auth-card p {
    color: var(--muted);
}

.section-head {
    margin: 30px 0 16px;
}

.section-head h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.project-card {
    padding: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 214, 255, 0.5);
}

.page-hero .project-grid {
    margin-top: 18px;
}

.page-hero .project-card {
    background: rgba(7, 20, 35, 0.62);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.project-meta {
    color: #8fd9ff;
    font-size: 12px;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.project-card h3 {
    margin-bottom: 8px;
    font-size: 22px;
}

.project-content {
    margin: 8px 0 14px;
    border-left: 2px solid rgba(152, 223, 255, 0.35);
    padding-left: 10px;
}

.btn,
button {
    border: 0;
    border-radius: 10px;
    padding: 11px 15px;
    background: linear-gradient(140deg, var(--brand), var(--brand-2));
    color: #032033;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.16s ease, filter 0.16s ease;
}

.btn:hover,
button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(152, 223, 255, 0.5);
    color: #d4f2ff;
}

.footer {
    margin-top: 24px;
    text-align: center;
    color: var(--muted);
}

.admin-body .container {
    margin-top: 36px;
}

.auth-wrap {
    width: min(1020px, 94vw);
    margin: 42px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.auth-brand,
.auth-card,
.admin-top,
.table-card,
.form-card {
    padding: 24px;
}

.auth-brand h1,
.auth-card h2,
.admin-top h1 {
    margin: 0 0 10px;
}

.form {
    display: grid;
    gap: 14px;
}

label {
    font-weight: 600;
    display: grid;
    gap: 6px;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    padding: 11px;
    color: var(--text);
    background: rgba(4, 14, 23, 0.72);
    font: inherit;
}

input:focus,
textarea:focus {
    outline: 0;
    border-color: rgba(65, 224, 175, 0.76);
    box-shadow: 0 0 0 3px rgba(65, 224, 175, 0.16);
}

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

.checkbox input {
    width: auto;
}

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

.admin-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

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

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

.stat-card {
    padding: 18px;
}

.stat-card h3 {
    font-size: 30px;
    margin-bottom: 6px;
}

.table-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

th,
td {
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding: 12px 10px;
}

th {
    color: #d5edff;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.linklike {
    border: 0;
    background: transparent;
    color: #ffb9c8;
    padding: 0;
    font: inherit;
}

.status {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-live {
    background: rgba(53, 208, 128, 0.16);
    color: #8af9bf;
}

.status-draft {
    background: rgba(255, 200, 108, 0.2);
    color: var(--warn);
}

.error,
.success {
    border-radius: 10px;
    padding: 11px 12px;
}

.error {
    background: var(--err-bg);
    border: 1px solid rgba(255, 141, 162, 0.22);
    color: var(--err-text);
}

.success {
    background: var(--ok-bg);
    border: 1px solid rgba(120, 239, 176, 0.22);
    color: var(--ok-text);
}

.narrow-shell {
    width: min(780px, 92vw);
    margin-inline: auto;
}

.compact {
    padding: 20px;
}

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

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

@media (max-width: 980px) {
    .hero,
    .auth-wrap,
    .admin-top {
        grid-template-columns: 1fr;
        display: grid;
    }

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

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

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

.nav-links a {
    position: relative;
    font-weight: 700;
    color: #dbf3ff;
    border: 1px solid rgba(148, 225, 255, 0.42);
    border-radius: 999px;
    padding: 9px 14px;
    background: linear-gradient(145deg, rgba(13, 37, 58, 0.75), rgba(8, 24, 40, 0.55));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px rgba(5, 16, 28, 0.28);
    text-decoration: none;
    transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(46, 195, 255, 0.22), rgba(65, 224, 175, 0.18));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    text-decoration: none;
    transform: translateY(-1px);
    border-color: rgba(156, 234, 255, 0.8);
    background: linear-gradient(145deg, rgba(19, 52, 78, 0.86), rgba(10, 31, 51, 0.7));
    box-shadow: 0 0 0 1px rgba(136, 224, 255, 0.18), 0 10px 22px rgba(0, 20, 34, 0.35);
}

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links a:active {
    transform: translateY(0);
}

.nav-links a.btn {
    color: #d4f2ff;
}


.page-hero {
    padding: 30px;
    margin-bottom: 20px;
}

.page-hero h1 {
    font-size: clamp(28px, 4.2vw, 44px);
    margin-bottom: 10px;
    max-width: 16ch;
}

.page-hero p {
    color: var(--muted);
    max-width: 70ch;
}

.info-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.info-card {
    padding: 20px;
    position: relative;
    isolation: isolate;
    overflow: visible;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.info-card::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    background: linear-gradient(120deg, rgba(46, 195, 255, 0.9), rgba(65, 224, 175, 0.85), rgba(46, 195, 255, 0.9));
    padding: 2px;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.info-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0, 16, 28, 0.35);
    border-color: rgba(152, 223, 255, 0.55);
}

.info-card:hover::after {
    opacity: 1;
    transform: scale(1.005);
}

.card-link {
    display: block;
    text-decoration: none;
    color: var(--text);
}

.card-link:hover {
    text-decoration: none;
    color: var(--text);
}

.card-link > * {
    position: relative;
    z-index: 1;
}

.info-card h2 {
    margin-bottom: 8px;
    font-size: 24px;
}

.info-card p {
    color: var(--muted);
    margin: 0 0 10px;
}

.info-card a {
    color: #a3e9ff;
    font-weight: 700;
}

.cta-banner {
    margin-top: 14px;
    padding: 24px;
    display: grid;
    gap: 8px;
    justify-items: start;
}

.cta-banner h2 {
    font-size: clamp(24px, 3.6vw, 36px);
}

.cta-banner p {
    color: var(--muted);
    max-width: 64ch;
}

@media (max-width: 980px) {
    .nav-links {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-links .btn {
        margin-top: 6px;
    }
}

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

.quick-link {
    padding: 18px;
    display: block;
    text-decoration: none;
}

.quick-link h3 {
    margin: 0 0 6px;
}

.quick-link p {
    margin: 0;
    color: var(--muted);
}

.split-panel {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
}

.spotlight-card {
    padding: 20px;
}

.spotlight-card h2 {
    margin-bottom: 8px;
}

.spotlight-card p {
    color: var(--muted);
    margin-bottom: 12px;
}

@media (max-width: 980px) {
    .quick-links,
    .split-panel,
    .spotlight-grid {
        grid-template-columns: 1fr;
    }
}



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

.repo-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #b5ecff;
    background: rgba(36, 94, 133, 0.28);
    border: 1px solid rgba(147, 227, 255, 0.32);
    margin: 0 0 10px;
}

.project-detail {
    padding: 24px;
}

.detail-image {
    margin-bottom: 16px;
}

.project-headline {
    margin-bottom: 10px;
}

.detail-content {
    color: var(--muted);
    border-left: 2px solid rgba(152, 223, 255, 0.32);
    padding-left: 12px;
    margin: 12px 0;
    white-space: pre-wrap;
}
