body,
html {
    width: 100%;
    height: 100%
    font-size: 125%;
}

/* Only apply to headings */
h1, h2, h3, h4, h5, h6 {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600; /* make it bold for strong headings */
  line-height: 1.3; /* good readability */
}

h6 {
    font-weight: 300;
    line-height: 1.1
}

h1 {
    font-size: 2.4em
}

h2 {
    font-size: 2em
}

h3 {
    font-size: 1.6em
}

h4 {
    font-size: 1.36em
}

h5 {
    font-size: 1.2em
}

h6 {
    font-size: 1.1em
}

body {
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #242121;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    line-height: 1.7em
}

a {
    color: #333;
    text-decoration: none
}

a:hover {
    color: #258fb8
}

hr {
    color: #eee;
    background-color: #eee;
    height: 1px;
    border: none;
    margin-top: 15px;
    margin-bottom: 30px;
}

img {
    max-width: 100%
}

aside {
  background-color: #0d1b2a;
  background-image: 
    linear-gradient(to right, rgba(0, 212, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 212, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: moveGrid 3s linear infinite;
}

aside,
aside a {
    color: #fff
}

aside a:hover {
    color: #258fb8
}

aside div {
    padding: 20px;
    margin: 0
}

aside div img {
     border: 2px solid #00d4ff;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
  transition: transform 0.3s ease;
    max-width: 140px
}

aside div h1 {
    margin: 15px 0 5px;
    font-size: 1.4rem;
    line-height: 1.2em;
}

.title{
    font-size: 0.95rem;
  color: #a9bcd0;
  margin-bottom: 0.5rem;
}
.tagline {
  font-size: 0.85rem;
  color: #a9bcd0;
  /* font-style: italic; */
  margin-bottom: 1.5rem;
}

aside div p {
    margin: 0 0 15px;
    font-size: .92em
}

aside nav ul li {
    display: inline;
    line-height: 1.6em;
    font-size: 1em;
    text-transform: uppercase;
}

main nav {
    text-align: center;
    text-transform: uppercase;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    font-size: 0
}

main .translations a,
main nav a {
    font-size: 12px;
    padding: 0 4px;
    border-right: 1px solid #eee
}

main .translations :last-child,
main nav :last-child {
    border-right: none
}

main .neighbors {
    margin: 4% 0;
    height: 20px
}

main .pagination {
    margin: 4% 8%;
    height: 20px
}

main .social-share p {
    font-size: .8em
}

main article {
  margin: 2.5rem auto 2rem auto;
  max-width: 900px;
  text-align: left;
}

main article header {
  text-align: left;
}

main article header h1,
main article header h2 {
    margin-bottom: 0
}

main article header p {
    color: #999;
    font-size: .86em
}
main article a {
    color: #258fb8;
    text-decoration: none;
}
/* For article titles */
.article-title {
  color: #333; 
}

.article-title:hover {
  color: #258fb8; 
}
main article header .translations {
    float: right
}

main article header .translations .active {
    font-weight: 600
}

main article code,
main article kbd,
main article pre,
main article samp {
    font-family: Source Code Pro, Consolas, Liberation Mono, DejaVu Sans Mono, monospace
}

main article blockquote,
main article pre {
    background-color: hsla(0, 0%, 50%, .05);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-left: 8px solid hsla(0, 0%, 50%, .075);
    border-left-width: 10px
}

main article blockquote {
    margin: 0;
    padding: 10px 20px;
    font-weight: 300;
    font-size: 1.1em
}

main article pre {
    padding: 4px;
    font-size: .9em;
    overflow-x: auto
}

main article samp {
    white-space: pre;
    display: block;
    overflow-x: auto
}

main article kbd {
    padding: .1em .6em;
    border: 1px solid rgba(63, 63, 63, .25);
    box-shadow: 0 1px 0 rgba(63, 63, 63, .25);
    background-color: #fff;
    color: #333;
    border-radius: 3px;
    display: inline-block;
    margin: 0 .1em;
    white-space: nowrap;
    font-size: .78em
}

main article :not(pre)>code {
    font-size: .8em;
    white-space: nowrap;
    color: #c25;
    padding: 1px 3px;
    background-color: #f7f7f9;
    border: 1px solid #e1e1e8;
    border-radius: 3px
}

main article .comment-count {
    font-size: .8em
}

main article table {
    border-collapse: collapse;
    border-spacing: 0
}

main article table thead:first-child tr:first-child th {
    border-top: 0
}

main article table td,
main article table th {
    padding: 8px;
    line-height: 20px;
    vertical-align: top;
    border-top: 1px solid #ddd
}

main article table.highlighttable {
    width: 100%;
    table-layout: fixed;
    /*Added border around entire code block for clean frame */
    border: 1px solid #ddd;
    overflow: hidden;
}

main article table.highlighttable td {
    border-style: none;
    padding: 0
}

/* Styled linenos (line numbers) column */
main article table.highlighttable td.linenos {
    width: 2.5em;
    /* Added light background to distinguish line numbers */
    background-color: hsla(0, 0%, 50%, .05);
    /* Added right border as divider between line numbers and code */
    vertical-align: top;
}

main article table.highlighttable td.linenos pre {
    overflow: hidden;
    /* Made background transparent to use td background instead */
    background-color: transparent;
    text-align: right;
    /*  Added proper padding for spacing */
    padding: 4px 8px;
    margin: 0;
}

/* Added code column styling to handle horizontal scroll */
main article table.highlighttable td.code {
    overflow-x: auto;
}

main article table.highlighttable td.code pre {
    background-color: hsla(0, 0%, 50%, .05);
    margin: 0;
    padding: 4px 8px;
}

main article section#isso-thread .auth-section .input-wrapper {
    margin-right: 5px
}

main article .toc .toctitle {
    font-size: 1.3em
}

main article .toc ul {
    list-style: none;
    padding-inline-start: 1rem
}

main article .toc>ul {
    padding: 0
}

main footer {
    padding-top: 4px;
    border-top: 1px solid #eee
}

main footer p {
    margin: 2px;
    text-align: center;
    padding: 0 40px;
    color: #999;
    font-size: 11px
}

main footer span.footer-separator {
    margin: 0 6px
}

.tag-cloud a {
    background-color: #6a6a6a;
    padding: .2em .6em;
    font-size: .74em;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em
}

.tag-cloud a:hover {
    background-color: #ff5a09
}
a.btn{display: none;}
a.btn,
section#isso-thread section.auth-section p.post-action input {
    background-color: #d9411e;
    padding: .6em;
    font-size: .8em;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border: none;
    border-radius: .25em
}

a.btn:hover {
    background-color: #ff5a09
}

.center,
.text-center {
    text-align: center
}

.align-center,
.img-center {
    margin-left: auto;
    margin-right: auto;
    display: block
}

.float-left {
    float: left
}

.float-right {
    float: right
}

div.related-posts {
    margin: 15px 0;
    padding-bottom: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee
}

div.related-posts h4 {
    margin: 20px 0 25px
}

div.related-posts ul {
    font-size: 1.1em;
    padding-left: 12px
}

div.related-posts ul li {
    padding: 4px 0
}

ul.list,
ul.related-posts,
ul.social {
    list-style-type: none;
    margin: 0;
    padding: 0
}

ul.list {
    padding: 2em 0
}

ul.list li {
    padding: 4px
}

ul.social {
    font-size: 1.6em;
    padding-top: 20px
}

ul.social li {
    display: inline
}

ul.social a:hover {
    z-index: 1;
    transform: translateY(-2px)
}

ul.social a {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 100%;
    text-align: center;
    font-size: .8em;
    line-height: 36px
}

ul.social a.sc-facebook {
    background-color: #3e5b98
}

ul.social a.sc-google {
    background-color: #d93e2d
}

ul.social a.sc-instagram {
    background-color: #125688
}

ul.social a.sc-keybase {
    background-color: #4c8dff
}

ul.social a.sc-pinterest {
    background-color: #c92619
}

ul.social a.sc-linkedin {
    background-color: #3371b7
}

ul.social a.sc-medium {
    background-color: #00ab6b
}

ul.social a.sc-rss {
    background-color: #f26109
}

ul.social a.sc-stack-overflow {
    background-color: #f90
}

ul.social a.sc-tumblr {
    background-color: #36465d
}

ul.social a.sc-twitch {
    background-color: #a970ff
}

ul.social a.sc-twitter {
    background-color: #4da7de
}

ul.social a.sc-youtube {
    background-color: #e02a20
}

ul.social a.sc-github,
ul.social a.sc-github-alt {
    background-color: #111010
}

ul.social a.sc-at,
ul.social a.sc-envelope,
ul.social a.sc-mailbox {
    background-color: #578ad6
}

ul.social a.sc-reddit {
    background-color: #ff4500
}

ul.social a.sc-soundcloud {
    background-color: #f50
}

ul.social a.sc-gitlab {
    background-color: #fca326
}

ul.social a.sc-xing {
    background-color: #007575
}

ul.social a.sc-bitbucket {
    background-color: #0747a6
}

ul.social a.sc-mastodon {
    background-color: #3088d4
}

ul.social a.sc-diaspora {
    color: #000;
    background-color: #d5d5d5
}

ul.social a.sc-flickr {
    background-color: #ff0084
}

ul.social a.sc-lastfm {
    background-color: #d92323
}

.ads-aside {
    display: inline-block;
    height: 90px;
    width: 70%
}

.ads-responsive {
    display: inline-block;
    margin: 6px 0;
    width: 90%;
    height: 70px;
    margin-left: 5%
}

@media screen and (min-width:768px) {
    aside {
        width: 20vw;
        height: 100vh;
        position: fixed;
        z-index: 2;
        top: 0;
        left: 0
    }

    aside div {
        padding: 36px 18px
    }

    aside div nav ul li {
        padding: 0 !important;
        display: block
    }

    aside div ul.social {
        padding-top: 3px
    }

    main {
        height: 100vh;
        position: relative;
        padding-left: 16vw
    }

    main article {
        max-width: auto;
    }

    main article ul.list li {
        padding: 2px
    }

    .ads-aside {
        height: 250px
    }

    .ads-responsive {
        height: 90px
    }
}

div.admonition {
    margin-bottom: 2.5rem;
    border-radius: 4px;
    padding: .5em 1.25em 1.25em
}

div.admonition p.admonition-title::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    font-family: FontAwesome;
}

div.admonition p.admonition-title {
    font-weight: 600;
    line-height: 1.25em;
    margin-bottom: 1.25em;
    margin-top: inherit
}

div.admonition div,
div.admonition p,
div.admonition pre {
    margin-bottom: 0
}

div.admonition {
    color: #242121;
    background-color: #ccc
}

/* Danger, Error, Warning */
div.admonition.danger,div.admonition.error,div.admonition.warning {
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #7f1d1d;
}

div.admonition.danger p.admonition-title,
div.admonition.danger p.admonition-title::before,
div.admonition.error p.admonition-title,
div.admonition.error p.admonition-title::before,
div.admonition.warning p.admonition-title, 
div.admonition.warning p.admonition-title::before {
    color: #f87171;
    font-family: "Font Awesome 5 Free";
}

div.admonition.danger p.admonition-title::before {
        content: "\f06a\00a0 ";              /* exclamation-circle icon */
}
div.admonition.error p.admonition-title::before {
    content: "\f057\00a0 ";              /* times-circle icon */
}
div.admonition.warning p.admonition-title::before {
    content: "\f071\00a0 ";              /* exclamation-triangle icon */
}

/* Caution, Attention, Important */

div.admonition.caution, div.admonition.attention, div.admonition.important {
    background-color: #fef9c3;
    border-left: 4px solid #eab308;
    color: #78350f;
}

div.admonition.caution p.admonition-title,
div.admonition.caution p.admonition-title::before,
div.admonition.attention p.admonition-title,
div.admonition.attention p.admonition-title::before,
div.admonition.important p.admonition-title,
div.admonition.important p.admonition-title::before {
    color: #e7ba06;
    font-family: "Font Awesome 5 Free";
}

div.admonition.caution p.admonition-title::before {
    content: "\f071\00a0 ";              /* exclamation-triangle icon */
}
div.admonition.important p.admonition-title::before {
    content: "\f06a\00a0 ";              /* exclamation-circle icon */
}
div.admonition.attention p.admonition-title::before {
    content: "\f06a\00a0 ";              /* exclamation-circle icon */
}

/* Hint, Note, Tip */

div.admonition.tip,div.admonition.hint,div.admonition.note {
    background-color: #ecfdf5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

div.admonition.tip p.admonition-title,
div.admonition.tip p.admonition-title::before,
div.admonition.hint p.admonition-title,
div.admonition.hint p.admonition-title::before,
div.admonition.note p.admonition-title,
div.admonition.note p.admonition-title::before {
    color: #34d399;
    font-family: "Font Awesome 5 Free";
}
div.admonition.tip p.admonition-title::before {
    content: "\f024\00a0 ";
}
div.admonition.hint p.admonition-title::before {
    content: "\f0eb\00a0 ";              /* lightbulb icon */
}
div.admonition.note p.admonition-title::before {
    content: "\f05a\00a0 ";              /* info-circle icon */
}

/* Todo, See Also */
div.admonition.todo, div.admonition.seealso {
    background-color: #e0f2fe;
    border-left: 4px solid #0284c7;
    color: #0c4a6e;
}

div.admonition.todo p.admonition-title,
div.admonition.todo p.admonition-title::before,
div.admonition.seealso p.admonition-title,
div.admonition.seealso p.admonition-title::before {
    color: #38bdf8;
    font-family: "Font Awesome 5 Free";
}

div.admonition.todo p.admonition-title::before{   
    content: "\f0ae\00a0 ";              /* tasks icon */
}
div.admonition.seealso p.admonition-title::before {
    content: "\f0c1\00a0 ";              /* link icon */
}

div.figure,
figure {
    font-size: 90%;
    color: #6c757d
}

div.figure figcaption,
figure figcaption {
    margin-top: .5em;
    text-align: center;
    color: #242121
}

div.figure img,
figure img {
    vertical-align: middle;
    line-height: 1;
    display: inline
}

div.figure p,
figure p {
    margin-top: 0;
    margin-bottom: 0
}

div.figure p.caption,
figure p.caption {
    font-style: italic
}

div.figure div.legend,
figure div.legend {
    text-align: initial
}

div.figure.align-left,
figure.align-left {
    text-align: left
}

div.figure.align-center,
figure.align-center {
    text-align: center
}

div.figure.align-right,
figure.align-right {
    text-align: right
}

.github-corner:hover .octo-arm {
    animation: a .56s ease-in-out
}

@keyframes a {

    0%,
    to {
        transform: rotate(0)
    }

    20%,
    60% {
        transform: rotate(-25deg)
    }

    40%,
    80% {
        transform: rotate(10deg)
    }
}

@keyframes moveGrid {
  from { background-position: 0 0; }
  to { background-position: 40px 40px; }
}

@media (max-width:500px) {
    .github-corner:hover .octo-arm {
        animation: none
    }

    .github-corner .octo-arm {
        animation: a .56s ease-in-out
    }
}
.social a, /*to make all icons white*/
.social a i,
.social a svg {
    color: white !important;
    background: none !important; /* remove background circles if any */
}

.highlight-name {
    color: #ff9800;        /* highlight color */
    font-weight: 700;      /* make bolder */
    font-size: 16px;       /* slightly bigger than the rest */
}
@media(min-width: 1480px)
{
    main article .toc {
    margin-top: -2.7em
}
.toc {
    position: fixed;
    right: 20px;
    top: 140px;
    width: 250px;
    font-size: 14px;
    line-height: 1.6em;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc a {
    text-decoration: none;
    color: #555;
}

.toc a:hover {
    color: #258fb8;
}
}
/* Prevent horizontal white space */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
.toc a.active {
    font-weight: bold;
    color: #007acc;   /* highlight color */
    border-left: 3px solid #007acc;
    padding-left: 5px;
    transition: all 0.2s ease-in-out;
}
.permalink {
  visibility: hidden;     /* hidden initially */
  margin-left: 8px;
  text-decoration: none;
  opacity: 0.5;
  font-size: 0.9em;
}

:where(h2, h3, h4, h5, h6):hover .permalink {
  visibility: visible;
}

.permalink:hover {
  opacity: 1;
  color: #007acc;
}

/* Contact form styles */
/* Hide auto-generated Contact Me title */
h1#contact-me {
  display: none !important;
}

/* Contact page content styling */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14.2rem;
    padding: 2.25rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* When contact content is inside the work/contact hero, adapt colors */
.work-hero .contact-content {
    color: #eef2f7; /* lighter text on dark hero backdrop */
}

.work-hero .contact-content > .contact-left {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: inherit;
    text-align: left;
}

/* Left column: text; Right column: form (no white card) */
.contact-content > form.contact-form {
    grid-column: 2 / 3;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    color: inherit;
}

.contact-content > .contact-left {
    grid-column: 1 / 2;
    align-self: start;
}

.contact-form {
  max-width: 500px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  display: block;
  padding-left: 8px;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 13px;
  color: #242121;
  padding: 8px 8px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-width: 2px;
  border-color: #cdcdcd;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form button.submit-btn {
  margin-top: 10px;
  background: #111;
  color: #fff;
  border: 2px solid transparent;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 13px;
  position: relative;
  transition: all 0.3s ease;
}

.contact-form button.submit-btn:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 6px #ff5f6d, 0 0 9px #ffc371, 0 0 15px #00c3ff;
}

/* Responsive: stack columns on narrow screens and remove overlap */
@media (max-width: 768px) {
        .contact-content {
                grid-template-columns: 1fr;
                margin-top: 0; /* don't overlap hero on mobile */
                padding: 1.5rem 1rem;
        }

        .contact-content > form.contact-form {
                grid-column: 1 / -1;
                padding: 1rem;
        }

        .work-hero + .contact-content {
                color: inherit; /* keep default text color on mobile */
        }
}

   /* Custom header layout styles */
.site-header {
    width: 100%;
    /* Sticky, glassmorphism header to match hero mock */
    position: sticky;
    top: 0;
    background: rgba(228, 230, 237, 0.3);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    z-index: 40;
}

.site-header__inner {
    width: auto;
    padding: 0.3rem 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between; /* spread to edges */
}


.site-brand {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
}

.site-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.site-brand img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 3px solid rgba(15, 23, 42, 0.15);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
    object-fit: cover;
    background: #fff;
}

.site-brand .brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.brand-role {
    font-size: 0.9rem;
    color: #475569;
}

.site-nav {
    flex: 1; /* This pushes left/right groups outward */
    display: flex;
    justify-content: center;
}


.site-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.site-nav__list a {
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    padding: 0.5rem 0.25rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.site-nav__list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0ea5e9;
    transition: width 0.3s ease, left 0.3s ease;
}

.site-nav__list a:hover,
.site-nav__list a:focus {
    color: #0ea5e9;
    outline: none;
}

.site-nav__list a:hover::after,
.site-nav__list a:focus::after {
    width: 100%;
    left: 0;
}

/* FIX — Right group takes equal space but stays right-aligned */
.site-social {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}
.site-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: #000000;
    transition: color 0.3s ease, transform 0.3s ease;
}

.site-social a:hover,
.site-social a:focus {
    transform: translateY(-2px);
    color: #0ea5e9;
    outline: none;
}

.site-social i {
    font-size: 1.6rem;
}

/* Align main content width with header for consistent columns */

main {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2vw;
    padding-right: 2vw;
}
@media (max-width: 900px) {
    .site-header__inner {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .site-brand {
        justify-content: center;
    }

    .site-nav__list {
        flex-wrap: wrap;
        row-gap: 0.75rem;
    }

    .site-social {
        justify-content: center;
    }
}

   /* Hero section styles */
.hero {
    /* Full-bleed background while content stays centered */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: radial-gradient(circle at top left, #0ea5e9 0, #0b1120 40%, #020617 100%);
    color: #e5e7eb;
    min-height: 60vh;
    padding: 5.5rem 0 4.5rem;
    display: flex;
    align-items: center;
}

/* Work page hero - remove article margin to sit flush with navbar */
.work-hero {
    margin-top: -2.5rem;
}.hero__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero__content {
    max-width: 720px;
}

.hero__title {
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 0 1.2rem;
    color: #f9fafb;
}

.hero__subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 auto 2rem;
    max-width: 640px;
    color: #d1d5db;
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero__inner {
        padding: 0 1.5rem;
    }

    .hero__title {
        font-size: clamp(2.2rem, 7vw, 2.8rem);
    }

    .hero__subtitle {
        font-size: 0.98rem;
    }
}

/* ===== PORTFOLIO SECTION ===== */

/* hide the auto-generated title with that exact id */
h1#my-work {
  display: none !important;
}

/* Portfolio section wrapper */
.portfolio-section {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Category filter button row */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem; 
}

/* Individual filter button */
.filter-btn {
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f0f0f0;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Active filter button */
.filter-btn.active {
    background-color: #1a1a1a;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Projects grid container */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Individual project card */
.project-card-new {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card-new:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Project banner image */
.project-card-new__banner {
    display: none;
}

/* Project card body */
.project-card-new__body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Category badges row */
.project-card-new__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Individual badge */
.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Project title */
.project-card-new__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: #1a1a1a;
}

/* Project description */
.project-card-new__description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

/* Features list */
.project-card-new__features {
    list-style: none;
    margin: 0 0 0.75rem 0;
    padding: 0;
    flex-grow: 1;
}

.project-card-new__features li {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
}

.project-card-new__features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #258fb8;
    font-weight: bold;
}

/* Tech stack icons row */
.project-card-new__tech {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.project-card-new__tech img {
    width: 32px;
    height: 32px;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-card-new__tech img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Project footer with action links */
.project-card-new__footer {
    display: none;
}

/* Hidden/filtered out cards */
.project-card-new[data-hidden="true"] {
    display: none;
}

/* Responsive: mobile */
/* Wide screens: keep filters in one line */
@media (min-width: 1200px) {
    .category-filters {
        flex-wrap: nowrap; /* fit all filters on one line */
    }

    .filter-btn {
        white-space: nowrap;  /* button text stays on one line */
        padding: 0.5rem 1.2rem; /* prevents wrapping due to width */
    }
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 2rem 1rem;
    }

    .category-filters {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card-new__body {
        padding: 1.5rem;
    }

    .project-card-new__banner {
        height: 160px;
    }

    .project-card-new__title {
        font-size: 1.2rem;
    }
}

/* Responsive: tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE NAVIGATION DRAWER ===== */

/* Mobile menu toggle - hidden by default on desktop */
.mobile-menu-toggle {
    display: none !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 0.4rem;
    z-index: 25;
}

/* Mobile menu overlay - hidden by default */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

/* Overlay visible when menu is open */
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Slide-in menu panel */
.mobile-menu-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto; /* ensure anchored to right */
    width: 100%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    overflow-x: hidden; /* prevent horizontal overflow */
    box-sizing: border-box; /* include padding in width */
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 5rem 2rem 2rem;
}

.mobile-menu-overlay.active .mobile-menu-nav {
    transform: translateX(0);
}

/* Close button in mobile menu */
.mobile-menu-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #1a1a1a;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-close {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close:hover {
    transform: scale(1.2);
    color: #258fb8;
}

/* Mobile menu list styles */
.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    margin-bottom: 1.5rem;
}

.mobile-menu-list a {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.mobile-menu-list a:hover {
    color: #258fb8;
}

/* Mobile menu social icons */
.mobile-menu-social {
    list-style: none;
    margin: 0;           /* remove top margin so it aligns with links */
    padding: 0;          /* remove padding-top */
    border-top: none;    /* remove separator line */
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;     /* allow icons to wrap instead of overflowing */
    align-items: center;
}

.mobile-menu-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: #000000;
    font-size: 1.6rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu-social a:hover {
    transform: translateY(-2px);
    color: #0ea5e9;
}

/* Ensure menu content doesn't get clipped on narrow screens */
@media (max-width: 768px) {
    .mobile-menu-nav {
        max-width: 100%;
        width: 100%;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .mobile-menu-list {
        padding-left: 0;
        margin-left: 0;
    }
}

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

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Responsive: Show mobile menu on screens below 1330px */
@media (max-width: 1330px) {
    /* Hide desktop nav and social on mobile */
    .site-nav,
    .site-social {
        display: none;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
    }
}

/* Mobile optimization */
@media (max-width: 768px) {
    .mobile-menu-nav {
        max-width: 100%;
        padding-top: 4rem;
    }

    .mobile-menu-list a {
        font-size: 1rem;
    }

    .mobile-menu-social {
        gap: 1rem;
    }

    .mobile-menu-social a {
        font-size: 1.6rem;
    }
}
