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

:root {
    --bg:           #040d1e;
    --accent:       #38bdf8;
    --accent-hi:    #7dd3fc;
    --accent-dim:   rgba(56, 189, 248, 0.10);
    --accent-glow:  rgba(56, 189, 248, 0.22);
    --accent-border:rgba(56, 189, 248, 0.20);
    --code-bg:      #10141f;
    --text:         #e0f2fe;
    --muted:        #82b4cf;
    --font-body:    'JetBrains Mono', monospace;
    --font-mono:    'JetBrains Mono', monospace;
    --radius:       16px;
    --radius-sm:    10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 24px; }

/* ── CANVAS STARFIELD ── */
#starfield {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

body {
    background:
        radial-gradient(ellipse 70% 55% at 12% 38%, rgba(70, 0, 140, 0.22) 0%, transparent 68%),
        radial-gradient(ellipse 55% 70% at 88% 18%, rgba(0, 50, 120, 0.28) 0%, transparent 60%),
        radial-gradient(ellipse 65% 45% at 55% 88%, rgba(0, 90, 130, 0.18) 0%, transparent 58%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 2.5rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
    background: rgba(3, 10, 26, 0.78);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow:
        inset 0 -1px 0 rgba(56, 189, 248, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 4px 24px rgba(0, 0, 0, 0.35);
}

nav .logo {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
    letter-spacing: 0.01em;
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}



nav ul {
    display: flex;
    gap: 1.6rem;
    padding: 20px;
    list-style: none;
}

nav ul a {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.2s, text-shadow 0.2s;
}
nav ul a:hover,
nav ul a.active {
    color: var(--accent-hi);
    text-shadow: 0 0 10px rgba(125, 211, 252, 0.45);
    text-decoration: none;
}

/* ── PAGE WRAPPER ── */
.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 3rem 4rem;
    background-color: rgba(0, 0, 0, 0.221);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ── HERO ── */
.hero {
    padding: 5rem 0 3.5rem;
}

.hero .tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 500;
    font-family: var(--font-mono);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.hero h1 .prompt-sep {
    color: var(--muted);
}

.hero h1 .prompt-user {
    color: var(--accent-hi);
    font-weight: 600;
}

.hero h1 .typed-name {
    font-weight: 700;
    background: linear-gradient(125deg, #e0f2fe 20%, #7dd3fc 55%, #a548bc 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .typed-name,
.hero p,
.cards .card p,
.cards .card .ascii-art {
    visibility: hidden;
}

.type-cursor {
    display: inline-block;
    width: 0.5em;
    height: 0.9em;
    margin-left: 0.05em;
    background: var(--accent);
    vertical-align: -0.1em;
    animation: cursorBlink 1s step-end infinite;
}

.run-btn {
    background: none;
    border: 0px solid var(--accent-border);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.65em;
    line-height: 1;
    padding: 0.25em 0.6em;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 0.7em;
    vertical-align: middle;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.run-btn:hover {
    box-shadow: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.45);
    color: var(--accent-hi);
}
.run-btn:disabled {
    opacity: 0.3;
    cursor: default;
    background: none;
}

@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero p {
    background-color: #00000036;
    padding: 25px;
    border: solid;
    border-color: #667786a7;
    border-radius: 20px;
    font-size: 1rem;
    color: var(--muted);
    max-width: 80%;
    line-height: 1.85;
    margin-bottom: 2rem;
    font-weight: 400;
    white-space: pre-line;
}

.hero .cta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
    padding: 0.5rem 1.4rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.btn:hover {
    background: rgba(255, 255, 255, 0.11);
    color: var(--text);
    text-decoration: none;
}
.btn.filled {
    background: var(--accent);
    color: #03111e;
    font-weight: 700;
}
.btn.filled:hover {
    background: var(--accent-hi);
    color: #03111e;
}

/* ── SECTION LABEL ── */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent);
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.32rem 1rem;
    border: 1px solid var(--accent-border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(56,189,248,0.10) 0%, rgba(56,189,248,0.05) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 12px rgba(56,189,248,0.08);
}
.section-label::before {
    content: '✦';
    font-size: 0.6rem;
    opacity: 0.7;
}

/* ── PROJECT SNIPPET CARDS ── */
.cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}
.cards h1{
    font-weight: 700;
    font-size: 2.4rem;
    background: linear-gradient(125deg, #e0f2fe 20%, #7758b3 55%, #bc4893 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* .card {
    background: var(--code-bg);
    border: 1px solid rgba(56, 189, 248, 0.14);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 4.5rem 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
    border-color: rgba(56, 189, 248, 0.34);
    border-left: 6px solid var(--accent);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45), 0 0 24px rgba(56, 189, 248, 0.08);
} */

.card-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.card-body {
    display: flex;
    align-items: stretch;
    gap: 2.5rem;
}

.card-body p {
    flex: 1 1 50%;
    min-width: 0;
}

.ascii-art {
    font-size: 0.7rem;
    background-color: #00000036;;
    padding: 60px;
    border: solid;
    border-color: #667786a7;
    border-radius: 16px;
    line-height: 1.2;
    margin: 0;
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    white-space: pre;
    overflow: hidden;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.ascii-art pre{
    padding-left: 20px;
    filter: drop-shadow(0 20px 60px rgba(87, 107, 188, 0.433));
}

@media (max-width: 700px) {
    .card-body {
        flex-direction: column;
        align-items: stretch;
    }
}

.card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}
.card p {
    background-color: #00000036;
    padding: 25px;
    border: solid;
    border-color: #667786a7;
    border-radius: 20px;
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 560px;
}
.card .card-links {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}
.card .card-links a {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-hi);
    border: 1px solid var(--accent-border);
    padding: 0.22rem 0.75rem;
    border-radius: 12px;
    background: rgba(56,189,248,0.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.card .card-links a:hover {
    background: rgba(56,189,248,0.16);
    border-color: rgba(56,189,248,0.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 0 10px rgba(56,189,248,0.18);
    text-decoration: none;
}

/* ── WIP CARD ── */
.wip-card {
    background: var(--code-bg);
    border: 1px solid rgba(56, 189, 248, 0.14);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 2.75rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.wip-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--text);
}
.wip-card p {
    font-size: 0.87rem;
    color: var(--muted);
    line-height: 1.75;
}

/* ── PROJECT DETAIL PAGES ── */
.page-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid rgba(56,189,248,0.12);
    margin-bottom: 2.5rem;
}

.back {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
    display: inline-block;
    margin-bottom: 1rem;
    transition: color 0.2s;
}
.back:hover { color: var(--accent-hi); text-decoration: none; }

.page-header h1 {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
    background: linear-gradient(125deg, #e0f2fe 30%, #7dd3fc 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-header .subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.4rem;
}
.page-header .page-links {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.page-header .page-links a {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--accent-hi);
    border: 1px solid var(--accent-border);
    padding: 0.3rem 0.95rem;
    border-radius: 14px;
    background: rgba(56,189,248,0.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.page-header .page-links a:hover {
    background: rgba(56,189,248,0.15);
    border-color: rgba(56,189,248,0.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 0 12px rgba(56,189,248,0.2);
    text-decoration: none;
}

.detail-section {
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    padding: 3rem 2.75rem;
}
.detail-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}
.detail-section p {
    background-color: #00000036;
    padding: 25px;
    border: solid;
    border-color: #667786a7;
    border-radius: 20px;
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 1rem;
}
.detail-section p:last-child { margin-bottom: 0; }

/* ── INLINE CODE ── */
code {
    background: rgba(56, 189, 248, 0.10);
    color: var(--accent-hi);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-size: 0.92em;
}

/* ── TECH TAGS ── */
.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.95rem;
}
.tag-chip {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted);
    padding: 0.2rem 0.7rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
}

/* ── CONTACT FORM ── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    background: rgba(4, 13, 36, 0.6);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.93rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08), 0 0 16px rgba(56, 189, 248, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted);
    opacity: 0.5;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.success-msg {
    text-align: center;
    padding: 2.5rem 1rem;
}

.success-msg .success-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

.success-msg h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.success-msg p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid rgba(56,189,248,0.10);
    padding: 2rem 2.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
    font-family: var(--font-mono);
    background: rgba(3,10,25,0.5);
    backdrop-filter: blur(12px);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent-hi); }

