@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Quicksand:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');

/* Merryweather
   Quicksand
   Libre Baskerville
   Source Code Pro
*/


/*------- reset -------*/

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/*------- general -------*/

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: visible;
}

p {
    color: white;
}

html {
    height: 100%;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    --sb-thumb: #00C8FF;
    --sb-thumb-hover: #00A6D6;
    --sb-track: rgba(255, 255, 255, 0.04);
    --sb-track-inner: rgba(0, 0, 0, 0.25);
    --sb-glow: rgba(0, 200, 255, 0.12);
}

body {
    height: auto !important; /* remove any calc(100vh - X) constraint */
    min-height: 100%;
    overflow: visible !important; /* body must not be the scroller */
}

/* ---------- Cross-browser scrollbar styling ---------- */
/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--sb-thumb) var(--sb-track); /* thumb, track */
}

/* WebKit (Chrome, Edge, Safari) */
html::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

html::-webkit-scrollbar-track {
    background: var(--sb-track);
    box-shadow: inset 0 0 0 4px var(--sb-track-inner);
    border-radius: 10px;
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--sb-thumb), var(--sb-thumb-hover));
    border-radius: 10px;
    box-shadow: 0 0 12px var(--sb-glow);
    border: 2px solid rgba(255, 255, 255, 0.03);
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--sb-thumb-hover), #008fbf);
    box-shadow: 0 0 18px var(--sb-glow);
}

/* Active / focused state for keyboard users */
html::-webkit-scrollbar-thumb:active,
html::-webkit-scrollbar-thumb:focus {
    outline: 2px solid rgba(0, 200, 255, 0.18);
    box-shadow: 0 0 22px rgba(0, 200, 255, 0.16);
}

/* ---------- Small accessibility/focus polish ---------- */
:focus {
    outline-offset: 3px;
}

/*------- navbar -------*/

.site-nav {
    background: linear-gradient(180deg, #05010f 0%, #0a0220 100%);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-sizing: border-box;
}

.site-nav__container {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
    width: 100%;
}

.site-nav__brand {
    font-weight: 600;
    text-decoration: none;
    color: rgb(0, 180, 255);
    margin-right: 1rem;
    font-family: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    display: inline-block;
}

.site-nav__links {
    margin-left: auto;
    width: auto;
}

.site-nav__list {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__item {
    display: block;
}

.site-nav__link {
    color: rgb(0, 200, 255);
    text-decoration: none;
    padding: 8px 6px;
    display: inline-block;
    transition: color .15s ease, background .15s ease, transform .08s ease;
    border-radius: 6px;
}

.site-nav__link:hover,
.site-nav__link:focus {
    color: rgb(0, 255, 255);
    background: rgba(255, 255, 255, 0.03);
    outline: none;
    transform: translateY(-1px);
}

.site-nav__link:active {
    transform: translateY(0);
    opacity: 0.95;
}

.site-nav__link:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.18);
    border-radius: 6px;
}

@media (max-width: 575px) {
    .site-nav__container {
        flex-wrap: wrap;
        align-items: center;
    }

    .site-nav__brand {
        flex: 0 0 100%;
        margin-bottom: 8px;
    }

    .site-nav__links {
        width: 100%;
    }

    .site-nav__list {
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-left: 0;
        padding-bottom: 8px;
    }

    .site-nav__link {
        padding: 10px 12px;
        font-size: 15px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .site-nav__link {
        padding: 12px 14px;
    }
}


/*------- header -------*/

/* =========================
   Base / existing rules
   ========================= */

.electric-blue-fade {
    background: linear-gradient(
            180deg,
            #05010f 0%,
            #0a0220 30%,
            #001a40 70%,
            #003a80 100%
    );
    color: #e8ecff;
}

.header-outer-container {
    width: 100%;
    min-height: 100vh;
    padding: 2.4rem;
}

.header-inner-container {
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    box-sizing: border-box;
}

@media (min-width: 800px) {
    .header-inner-container {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 2.4rem;
        max-width: 1200px;
        margin: 0 auto;
    }
}

.hero-copy {
    flex: 1 1 56%;
    min-width: 260px;
    color: #e8ecff;
}
.hero-copy h1 {
    font-size: 2.4rem;
    line-height: 1.05;
    margin-bottom: .4rem;
    font-family: "Exo 2", sans-serif;
}
.hero-copy .role {
    color: rgba(232,236,255,0.85);
    margin-bottom: .6rem;
    font-weight: 500;
}

.hero-copy .lead {
    margin-bottom: 1rem;
    color: rgba(232,236,255,0.92);
    font-size: 1.05rem;
}

.hero-actions {
    display: inline-flex;
    gap: .75rem;
    align-items: center;
    margin-top: .6rem;
    flex-wrap: wrap;
}

/* Primary CTA (kept from your rules) */
.btn-primary {
    display: inline-block;
    background: rgb(0,200,255);
    color: #00121a;
    padding: .7rem 1.1rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,200,255,0.12);
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,200,255,0.18);
}
.btn-primary:focus-visible {
    outline: 3px solid rgba(0,200,255,0.18);
    outline-offset: 3px;
}

/* Secondary / ghost CTA */
.btn-ghost {
    background: transparent;
    color: rgba(0,200,255,0.95);
    padding: .6rem .9rem;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.03);
    transition: background .12s ease, transform .12s ease;
}
.btn-ghost:hover,
.btn-ghost:focus {
    background: rgba(255,255,255,0.02);
    transform: translateY(-2px);
}
.btn-ghost:focus-visible {
    box-shadow: 0 0 0 3px rgba(0,200,255,0.12);
    border-radius: 8px;
}

#btn-email-me:hover {
    color: green;
}

/* hint text under actions */
.hint {
    margin-top: .9rem;
    color: rgba(232,236,255,0.7);
    font-size: .95rem;
}


.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: .5rem .75rem;
    background: rgba(0,0,0,0.8);
    color: #00c8ff;
    border-radius: 6px;
    z-index: 2000;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .typed .text,
    .typed .cursor,
    .btn-primary,
    .btn-ghost { animation: none !important; transition: none !important; }
}

@media (max-width: 800px) {
    .header-inner-container { flex-direction: column; text-align: center; }
    .hero-copy h1 { font-size: 1.8rem; }
    .hero-actions { justify-content: center; }
}


h1 {
    color: white;
    font-family: "Exo 2", sans-serif;
}

h3 {
    color: white;
}

h6 {
    color: white;
}

/*------- main -------*/


#section-about-me {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    height: 90vh;
    padding: 2rem;
    box-sizing: border-box;
    background: linear-gradient(180deg, #003a80 0%, #0a1a33 50%, #0d0d15 100%);
    color: #e8ecff;
}


#stack-imgs {
    width: 45%;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#programming-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    align-items: center;
}

.card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    margin: 5px;
    border-radius: 20px;
    transition: all .3s;
    box-sizing: border-box;
}

.card2 {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    transition: all .2s;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card2 img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
}

.card2:hover {
    transform: scale(0.98);
}

.card:hover {
    box-shadow: 0 0 30px 1px rgba(0, 255, 117, 0.30);
}

#div-about-me {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45%;
    min-width: 260px;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
}

#avatar-img {
    width: 60%;
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0.5rem auto;
}


@media (max-width: 800px) {
    #section-about-me {
        flex-direction: column;
        height: auto;
        padding: 2.5rem 1rem;
    }

    #stack-imgs, #div-about-me {
        width: 100%;
    }

    #avatar-img {
        width: 40%;
        max-width: 160px;
    }

    .card, .card2 {
        width: 80px;
        height: 80px;
    }

    .card2 img {
        width: 60%;
        height: 60%;
    }
}


#section-projects {
    padding: 120px 0;
    background: linear-gradient(180deg, #0d0d15 0%, #001a33 60%, #003a80 100%);
    color: #e8ecff;
}

.project-block {
    width: 100%;
}


.project-triptally {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.outer-container-this-website-diagram {
    display: flex;
    flex-direction: column;
    gap: 48px;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;

}

#triptally-container-svg {
    width: 100%;
    max-width: 1200px;
    max-height: 75vh;
    overflow: auto;
    box-sizing: border-box;
}

#triptally-container-svg svg,
#triptally-container-svg #triptally-svg {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

#triptally-container-svg svg text {
    vector-effect: non-scaling-stroke;
}

.project-row {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    text-align: center;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    box-sizing: border-box;
}

.anilytics-images {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.anilytics-images img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
    .project-row {
        grid-template-columns: 1fr;
        padding: 40px 16px;
    }

    .anilytics-images {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        justify-items: center;
        gap: 30px;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox .close {
    position: absolute;
    color: white;
    top: 20px;
    right: 24px;
    width: 36px;
    height: 36px;
}

a:link {
    text-decoration: none;
}

#anilytics-link {
    color: #00A6D6;
}

#anilytics-link:hover {
    color: limegreen;
}

@media (max-width: 900px) {
    #website-workflow-svg {
        max-height: 50vh;
    }
}

#website-workflow-svg {
    width: 100%;
    height: auto;
    max-width: 1200px;
    max-height: 75vh;
    display: block;
    box-sizing: border-box;
    overflow: auto;
}


.this-website-diagram {
    max-height: 80vh;
    overflow: auto;
}


.project-images-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-image-frame {
    width: 200px;
    padding: 12px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.project-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.project-text-col h3 {
    margin: 0 0 12px 0;
    font-size: 1.6rem;
    color: #e8ecff;
}

.project-text-col p {
    margin: 0;
    line-height: 1.6;
    color: rgba(232, 236, 255, 0.9);
}

@media (max-width: 900px) {
    .project-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .outer-container-this-website-diagram {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .project-images-col {
        align-items: center;
    }
}


/*------- footer -------*/

:root {
    --footer-bg-top: #05010f;
    --footer-bg-bottom: #0a0220;
    --muted: rgba(232,236,255,0.72);
    --accent: #00c8ff;
    --accent-strong: rgba(0,200,255,0.12);
}

/* Footer base */
.site-footer {
    width: 100%;
    background: linear-gradient(180deg, var(--footer-bg-top), var(--footer-bg-bottom));
    color: #e8ecff;
    padding: 2rem 1rem;
    box-sizing: border-box;
    border-top: 1px solid rgba(255,255,255,0.03);
}

/* Inner layout */
.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-sizing: border-box;
}

/* Brand block */
.site-footer__brand {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    min-width: 220px;
}
.site-footer__icon {
    width: 44px;
    height: 44px;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
}
.site-footer__meta { line-height: 1.05; }
.site-footer__name { font-weight: 700; margin: 0; font-family: "Exo 2", sans-serif; }
.site-footer__tag { margin: 0; color: var(--muted); font-size: .92rem; }

/* Nav links */
.site-footer__nav { margin: 0; }
.site-footer__list {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.site-footer__link {
    color: var(--accent);
    text-decoration: none;
    padding: .35rem .5rem;
    border-radius: 8px;
    transition: background .12s ease, transform .12s ease;
}
.site-footer__link:hover,
.site-footer__link:focus {
    background: rgba(255,255,255,0.02);
    transform: translateY(-2px);
}
.site-footer__link:focus-visible {
    box-shadow: 0 0 0 3px rgba(0,200,255,0.12);
    border-radius: 8px;
}

/* Contact / CTA */
.site-footer__contact { display: flex; gap: 1rem; align-items: center; min-width: 220px; }
.site-footer__cta {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(255,255,255,0.04);
    padding: .5rem .8rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}
.site-footer__cta:hover,
.site-footer__cta:focus {
    background: var(--accent-strong);
    color: #00121a;
    transform: translateY(-2px);
}
.site-footer__cta:focus-visible { outline: 3px solid rgba(0,200,255,0.14); outline-offset: 3px; }

/* Copyright */
.site-footer__copyright { margin: 0; color: var(--muted); font-size: .92rem; }

/* Responsive: stack on small screens */
@media (max-width: 720px) {
    .site-footer__inner { flex-direction: column; align-items: stretch; gap: 1rem; text-align: center; }
    .site-footer__brand, .site-footer__contact { justify-content: center; }
    .site-footer__list { justify-content: center; flex-wrap: wrap; gap: .6rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .site-footer__link,
    .site-footer__cta { transition: none; transform: none; }
}



/*------- et cetera -------*/

:root {
    --bg-top: #0b0026;
    --bg-bottom: #1b0044;
    --neon-pink: #ff3ca6;
    --neon-purple: #6b2cff;
    --horizon-pink: rgba(255, 60, 166, 0.12);
    --horizon-purple: rgba(107, 44, 255, 0.06);
}


.neon-background {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%) fixed;
    overflow-x: hidden;
    overflow-y: visible;
}

.neon-background > * {
    position: relative;
    z-index: 1;
}

.svg-inline-wrap,
.svg-preview-wrap,
.anilytics-images {
    position: relative;
    z-index: 20;
}

.svg-preview-wrap {


}

.svg-open-link {
    display: inline-block;
    margin-top: 12px;
    color: #00c8ff;
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
}

.svg-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    z-index: 99999;
    padding: 24px;
    box-sizing: border-box;
}

.svg-lightbox:target {
    display: flex;
}


.svg-lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 10px;
    border-radius: 6px;
    z-index: 100000;
}

.svg-lightbox__content {
    max-width: 96vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-lightbox__img,
.svg-lightbox__content svg {
    max-width: 78%;
    max-height: 78%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.svg-open-link:focus,
.svg-lightbox__close:focus {
    outline: 3px solid rgba(0, 200, 255, 0.18);
    outline-offset: 2px;
    border-radius: 6px;
}

#website-workflow-svg,
#website-workflow-svg * {
    stroke: #ffffff !important;
    stroke-width: 1.5px !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    fill: none !important;
    vector-effect: none !important;
}

#website-workflow-svg rect { fill: none !important; stroke: #ffffff !important; }

#website-workflow-svg marker polygon,
#website-workflow-svg marker path {
    fill: #ffffff !important;
    stroke: none !important;
}

@media (max-width: 768px) {
    .project-row {
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
    }

    .project-images-col {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 16px;
    }

    .project-image-frame {
        width: 140px;
        padding: 10px;
    }

    .project-text-col {
        width: 100%;
    }
}







