
/* =========================================
   DANKARISTIC — PORTFOLIO STYLES
   ========================================= */

:root {
    color-scheme: dark;

    --bg: #090c11;
    --bg-secondary: #0e131b;
    --surface: #121923;
    --surface-hover: #192331;

    --text: #e8edf4;
    --text-secondary: #a1adbc;
    --text-muted: #748294;

    --accent: #36e0a1;
    --accent-hover: #70f2c1;
    --accent-soft: rgba(54, 224, 161, 0.10);

    --border: #263140;
    --border-hover: #3d5062;

    --radius: 12px;
    --radius-lg: 20px;
    --container: 1160px;

    --font: ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", sans-serif;

    --mono: "SFMono-Regular", Consolas,
        "Liberation Mono", monospace;
}

/* RESET */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

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

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

img {
    max-width: 100%;
    display: block;
}

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

h1, h2, h3 {
    line-height: 1.2;
    letter-spacing: -0.035em;
}

p {
    color: var(--text-secondary);
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.accent {
    color: var(--accent);
}

.gradient-text {
    color: var(--accent);
    background: linear-gradient(
        110deg,
        var(--accent),
        #8cf5d2,
        #8cb9ff
    );
    -webkit-background-clip: text;
    background-clip: text;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .gradient-text {
        color: transparent;
    }
}

/* =========================================
   NAVIGATION
   ========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 12, 17, 0.90);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    width: min(calc(100% - 48px), var(--container));
    min-height: 76px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mono);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.055em;
    white-space: nowrap;
}

.brand-symbol {
    color: var(--accent);
    margin-right: 6px;
}

.brand-cursor {
    color: var(--accent);
    animation: blink 1.2s step-end infinite;
}

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

.nav-links a,
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.footer-links a:hover,
.hero-socials a:hover {
    color: var(--accent);
}

.nav-github {
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-family: var(--mono);
    font-size: 0.8rem;
    transition: 0.2s ease;
}

.nav-github:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

/* =========================================
   HERO
   ========================================= */

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 65px;
    padding: 115px 0 105px;
}

.hero::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    top: 0;
    right: -120px;
    background: radial-gradient(
        circle,
        rgba(54, 224, 161, 0.075),
        transparent 70%
    );
    pointer-events: none;
    z-index: -1;
}

.hero-content,
.hero-terminal {
    min-width: 0;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 13px;
    margin-bottom: 35px;
    border: 1px solid rgba(54, 224, 161, 0.22);
    border-radius: 100px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(54, 224, 161, 0.6);
}

.eyebrow,
.section-tag {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.07em;
}

.hero h1 {
    margin: 18px 0;
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 1.08;
}

.hero-subtitle {
    margin-bottom: 20px;
    color: var(--text);
    font-size: clamp(1.3rem, 2.2vw, 1.9rem);
    font-weight: 500;
}

.hero-description {
    max-width: 540px;
    font-size: 1.05rem;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 46px;
    padding: 11px 19px;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 650;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

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

.btn-primary {
    background: var(--accent);
    color: #07120e;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    border: 1px solid var(--border);
    background: var(--surface);
}

.btn-secondary:hover {
    border-color: var(--accent);
}

.hero-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 32px;
}

.hero-socials a {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

/* =========================================
   TERMINAL
   ========================================= */

.hero-terminal {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #0d121a;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
    transform: rotate(1deg);
    transition: transform 0.3s ease;
}

.hero-terminal:hover {
    transform: rotate(0deg);
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: #151c27;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.72rem;
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) {
    background: #ff5f57;
}

.terminal-dots span:nth-child(2) {
    background: #febc2e;
}

.terminal-dots span:nth-child(3) {
    background: #28c840;
}

.terminal-body {
    padding: 24px;
    font-family: var(--mono);
    font-size: 0.78rem;
}

.terminal-line {
    display: flex;
    gap: 12px;
    color: var(--text-secondary);
}

.terminal-prompt {
    color: var(--accent);
}

.terminal-body pre {
    margin: 18px 0;
    overflow-x: auto;
    color: var(--text);
    font: inherit;
    line-height: 2;
    tab-size: 2;
}

.json-key {
    color: #8cb9ff;
}

.json-string {
    color: #9be6bc;
}

.terminal-last {
    margin-top: 12px;
}

.terminal-cursor {
    color: var(--accent);
    animation: blink 1.2s step-end infinite;
}

.terminal-icon {
    opacity: 0.5;
}

/* =========================================
   STATS
   ========================================= */

.stats-section {
    padding-bottom: 35px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 27px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
}

.stat-value {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    color: var(--text);
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* =========================================
   SHARED SECTIONS
   ========================================= */

.section {
    padding: 105px 0;
    border-bottom: 1px solid var(--border);
}

.section-heading {
    margin-bottom: 45px;
}

.section-heading h2 {
    margin: 12px 0 13px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.section-heading p {
    max-width: 600px;
    margin-bottom: 0;
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 600;
}

.text-link:hover {
    color: var(--accent-hover);
}

/* =========================================
   ABOUT
   ========================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 85px;
}

.about-lead {
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.8;
}

.about-description {
    margin-bottom: 28px;
    line-height: 1.9;
}

.about-details {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.detail-item:first-child {
    padding-top: 0;
}

.detail-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.detail-label {
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 550;
}

/* =========================================
   TECHNOLOGIES
   ========================================= */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    transition: 0.2s ease;
}

.tech-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: var(--surface);
}

.tech-name {
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 650;
}

.tech-category {
    color: var(--text-muted);
    font-size: 0.76rem;
}

/* =========================================
   PROJECTS
   ========================================= */

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

.project-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 30px;
}

.project-category {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.project-status {
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.project-content {
    flex: 1;
}

.project-content h3 {
    margin-bottom: 14px;
    font-size: 1.45rem;
}

.project-description {
    font-size: 0.93rem;
    line-height: 1.8;
}

.project-highlights {
    margin: 22px 0;
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.project-highlights li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.project-highlights li::marker {
    color: var(--accent);
}

.project-bottom {
    margin-top: 28px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-tag {
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-secondary);
    font-family: var(--mono);
    font-size: 0.7rem;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.project-links a {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.8rem;
}

.project-links a:hover {
    color: var(--accent-hover);
}

/* =========================================
   PHILOSOPHY
   ========================================= */

.philosophy-card {
    position: relative;
    overflow: hidden;
    padding: 75px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(
        135deg,
        #121d23,
        #10141e 65%
    );
}

.philosophy-card::after {
    content: "{ }";
    position: absolute;
    right: 7%;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(54, 224, 161, 0.055);
    font-family: var(--mono);
    font-size: clamp(6rem, 15vw, 14rem);
    font-weight: 800;
    pointer-events: none;
}

.philosophy-card h2 {
    position: relative;
    z-index: 1;
    margin: 25px 0;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.15;
}

.philosophy-card p {
    position: relative;
    z-index: 1;
    max-width: 630px;
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.9;
}

/* =========================================
   BLOG / WRITING
   ========================================= */

.posts-list {
    border-top: 1px solid var(--border);
}

.post-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 12px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.post-item:hover {
    background: var(--bg-secondary);
}

.post-date {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.post-info h3 {
    margin: 10px 0;
    font-size: 1.25rem;
}

.post-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.post-arrow {
    flex-shrink: 0;
    color: var(--accent);
    font-size: 1.4rem;
}

/* =========================================
   CONTACT CTA
   ========================================= */

.contact-section {
    border-bottom: none;
}

.contact-card {
    padding: 80px 35px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(54, 224, 161, 0.09),
            transparent 65%
        ),
        var(--bg-secondary);
}

.contact-card h2 {
    margin: 22px 0;
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.contact-card p {
    max-width: 530px;
    margin: 0 auto 30px;
}

.contact-card .btn {
    margin: auto;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-inner {
    width: min(calc(100% - 48px), var(--container));
    margin: auto;
    padding: 50px 0 25px;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 35px;
    padding-bottom: 45px;
}

.footer-brand {
    font-family: var(--mono);
    font-size: 1.15rem;
    font-weight: 800;
}

.footer-identity p {
    margin: 12px 0 0;
    font-size: 0.85rem;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-bottom p {
    margin: 0;
    color: inherit;
}

.footer-tech strong {
    color: var(--accent);
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes blink {
    50% {
        opacity: 0;
    }
}

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

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

.hero-content {
    animation: fade-up 0.7s ease both;
}

.hero-terminal {
    animation: fade-up 0.8s 0.15s ease both;
}

/* =========================================
   RESPONSIVE — TABLET
   ========================================= */

@media (max-width: 950px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 80px 0;
    }

    .hero-terminal {
        max-width: 650px;
        width: 100%;
        transform: none;
    }

    .about-grid {
        gap: 40px;
    }

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

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

    .nav-links {
        gap: 18px;
    }
}

/* =========================================
   RESPONSIVE — MOBILE
   ========================================= */

@media (max-width: 650px) {
    .container,
    .nav-inner,
    .footer-inner {
        width: min(calc(100% - 32px), var(--container));
    }

    .nav-inner {
        min-height: 68px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 14px 0;
    }

    .brand {
        font-size: 1.05rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .nav-github {
        margin-left: auto;
        font-size: 0.75rem;
    }

    .hero {
        padding: 65px 0;
        gap: 40px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .availability {
        margin-bottom: 25px;
    }

    .terminal-body {
        padding: 16px;
        font-size: 0.67rem;
    }

    .terminal-body pre {
        line-height: 1.8;
    }

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

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

    .section {
        padding: 70px 0;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .about-lead {
        font-size: 1.1rem;
    }

    .philosophy-card {
        padding: 45px 25px;
    }

    .contact-card {
        padding: 55px 22px;
    }

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

    .footer-links {
        gap: 15px 20px;
    }
}

@media (max-width: 380px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .terminal-body {
        font-size: 0.6rem;
    }
}

/* =========================================
   ACCESSIBILITY
   ========================================= */

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

/* =========================================
   SKIP LINK
   ========================================= */

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--accent);
    color: #07120e;
    font-weight: 650;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
}

/* =========================================
   INNER PAGES
   ========================================= */

.page-section {
    padding-top: 80px;
}

.page-title {
    margin: 12px 0 16px;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
}

.page-lead {
    max-width: 680px;
    font-size: 1.05rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.85rem;
}

.back-link:hover {
    color: var(--accent-hover);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr);
    gap: 55px;
}

.detail-aside {
    align-self: start;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
}

.detail-aside h3 {
    margin-bottom: 18px;
    font-size: 1rem;
}

.detail-aside .project-tech {
    margin-bottom: 0;
}

.detail-aside .project-links {
    margin-top: 22px;
}

.prose {
    max-width: 720px;
}

.prose h2 {
    margin: 38px 0 16px;
    font-size: 1.5rem;
}

.prose p,
.prose li {
    line-height: 1.9;
}

.prose ul {
    padding-left: 20px;
}

.prose li::marker {
    color: var(--accent);
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.contact-method {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.85rem;
    transition: 0.2s ease;
}

.contact-method:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.error-page {
    text-align: center;
}

.error-page .page-lead {
    margin-inline: auto;
}

.empty-msg {
    margin: 0;
}

@media (max-width: 950px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 650px) {
    .page-section {
        padding-top: 55px;
    }

    .contact-methods {
        flex-direction: column;
        align-items: stretch;
    }
}
