@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #080808;
    --bg-elevated: rgba(34, 1, 29, 0.42);
    --panel: rgba(255, 255, 255, 0.04);
    --panel-strong: rgba(255, 255, 255, 0.07);
    --text: #edf2fc;
    --muted: rgba(166, 160, 160, 0.75);
    --accent: rgb(233, 7, 165);
    --accent-2: rgb(11, 11, 136);
    --line: rgba(244, 165, 220, 0.22);
    --shadow: 0 0 28px rgba(179, 7, 173, 0.25);
    --text-glow: 0px 0px 60px rgba(255, 0, 85, 0.35);
    --btn-glow: 0 0 22px rgba(179, 7, 173, 0.55);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(233, 7, 165, 0.2), transparent 30%),
        radial-gradient(circle at top right, rgba(11, 11, 136, 0.2), transparent 30%),
        linear-gradient(180deg, #080808 0%, #060308 55%, #080808 100%);
    color: var(--text);
}

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

.projects-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.projects-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(to right, rgb(5, 2, 7), rgb(30, 3, 15), rgb(0, 0, 0));
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 12px;
    z-index: 5;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand span {
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: linear-gradient(to right, red, blue);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    font-weight: 700;
}

.brand strong {
    font-size: 1.05rem;
}

.top-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-links a {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.top-links a:hover {
    transform: translateY(-1px);
    border-color: rgba(244, 165, 220, 0.5);
    color: var(--text);
    background: rgba(233, 7, 165, 0.12);
}

.hero {
    padding: 64px 0 28px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
    align-items: end;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, red, blue);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: var(--text-glow);
}

.hero p,
.page-hero p {
    margin: 18px 0 0;
    color: var(--muted);
    max-width: 62ch;
    line-height: 1.7;
    font-size: 1rem;
}

.hero-card {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(150deg, rgba(233, 7, 165, 0.12), rgba(11, 11, 136, 0.12));
    box-shadow: var(--shadow);
}

.hero-card h2,
.section-title h2,
.panel h2 {
    background: linear-gradient(to right, red, blue);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: 0px 0px 24px rgba(255, 0, 85, 0.28);
}

.hero-card h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.hero-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 44px 0 18px;
}

.section-title h2 {
    margin: 0;
    font-size: 1.35rem;
}

.section-title span {
    color: var(--muted);
    font-size: 0.95rem;
}

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

.project-card {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
    min-height: 100%;
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(244, 165, 220, 0.45);
    box-shadow: 0 0 38px rgba(179, 7, 173, 0.42);
}

.project-card.featured {
    grid-column: span 12;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.project-media {
    position: relative;
    background: #120712;
    min-height: 220px;
}

.project-card.featured .project-media {
    min-height: 100%;
}

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

.project-badge {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(24, 4, 23, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    font-size: 0.8rem;
    backdrop-filter: blur(12px);
}

.project-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.project-body h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text);
    text-shadow: 0px 0px 14px rgba(233, 7, 165, 0.22);
}

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

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

.tech-list span {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(233, 7, 165, 0.09);
    border: 1px solid rgba(244, 165, 220, 0.25);
    color: #f4f0f0;
    font-size: 0.84rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.btn-primary {
    background: linear-gradient(150deg, rgb(233, 7, 165), rgb(11, 11, 136));
    color: #f4f0f0;
    text-shadow: 1px 1px 20px rgb(235, 8, 8), 0 0 1em rgb(70, 16, 59), 0 0 0.2em rgba(0, 0, 255, 0.001);
    box-shadow: var(--btn-glow);
}

.btn-primary:hover {
    background: linear-gradient(150deg, rgb(244, 165, 220), rgb(41, 41, 215));
    box-shadow: 0 0 28px rgba(179, 7, 173, 0.7);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(244, 165, 220, 0.25);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: rgba(244, 165, 220, 0.45);
    background: rgba(233, 7, 165, 0.12);
}

.detail-hero {
    padding: 54px 0 26px;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 24px;
    align-items: center;
}

.page-hero {
    padding: 56px 0 24px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.meta-row span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(233, 7, 165, 0.08);
    border: 1px solid rgba(244, 165, 220, 0.25);
    color: var(--muted);
    font-size: 0.85rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    margin-top: 16px;
}

.panel {
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(53, 1, 66, 0.35), rgba(11, 3, 26, 0.5));
    box-shadow: var(--shadow);
    padding: 22px;
}

.panel h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.panel p,
.panel li {
    color: var(--muted);
    line-height: 1.75;
}

.panel ul {
    margin: 0;
    padding-left: 18px;
}

.preview {
    overflow: hidden;
    padding: 0;
}

.preview img {
    width: 100%;
    display: block;
}

.link-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-stack a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(244, 165, 220, 0.22);
    background: rgba(233, 7, 165, 0.08);
    color: var(--text);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.link-stack a:hover {
    transform: translateY(-2px);
    border-color: rgba(244, 165, 220, 0.44);
    background: rgba(233, 7, 165, 0.16);
    box-shadow: 0 0 20px rgba(179, 7, 173, 0.35);
}

.link-stack a span {
    color: var(--muted);
}

.footer-note {
    margin-top: 30px;
    color: var(--muted);
    text-align: center;
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    .hero,
    .detail-hero,
    .detail-layout,
    .project-card.featured {
        grid-template-columns: 1fr;
    }

    .project-card {
        grid-column: span 12;
    }

    .projects-topbar {
        position: static;
    }
}

@media (max-width: 640px) {
    .projects-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 16px;
    }

    .projects-topbar {
        padding: 14px;
        border-radius: 18px;
    }

    .top-links {
        justify-content: flex-start;
    }

    .hero,
    .page-hero,
    .detail-hero {
        padding-top: 28px;
    }

    .project-body,
    .panel {
        padding: 18px;
    }
}
