/* *,*::after, *::before {
    box-sizing: border-box;
} */

div > * {
    transition: all 0.2s linear;
}

body {
    font-family: -apple-system, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', system-ui, BlinkMacSystemFont, sans-serif;
    color: #1d1d1f;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Home page (Codex-like landing hero) */
body.home .main.content{
    padding: 0;
    max-width: none;
}

body.home section{
    margin: 0;
}

.home-hero{
    --mx: 0.5;
    --my: 0.35;
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    padding: 7.5rem 2.5rem 3.5rem 2.5rem;
    min-height: 78vh;
    display: flex;
    align-items: center;
    background: #ffffff;
}

.home-hero::after{
    content:"";
    position:absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 140px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(245, 245, 247, 0.5) 55%, #f5f5f7 100%);
    pointer-events: none;
}

/* Home projects: keep full-width background continuity */
body.home section.project{
    padding: 0.75rem 0 4rem 0;
    background: linear-gradient(180deg, #f5f5f7 0%, #f5f5f7 35%, #ffffff 100%);
}

body.home section.project .container{
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    gap: 1.5rem;
}

body.home section.project .flex-project{
    padding-left: 0;
    padding-right: 0;
    flex: 1 1 18rem;
}

body.home section.project .cover-container{
    margin-left: 0;
    margin-right: 0;
}

.home-hero::before{
    content:"";
    position:absolute;
    inset:-2px;
    background: none;
    opacity: 0;
    pointer-events: none;
}

@keyframes homeGridDrift{
    0%{ background-position: 0 0, 0 0; }
    100%{ background-position: 0 0, 0 0; }
}

.home-hero-inner{
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 0;
}

.home-eyebrow{
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1d1d1f;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 
        inset 0 0.5px 0 0 rgba(255,255,255,0.8),
        0 1px 2px rgba(0,0,0,0.04),
        0 4px 12px rgba(0,0,0,0.05);
    border: none;
}

.home-eyebrow::before{
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
    box-shadow: 0 0 6px rgba(52, 199, 89, 0.4);
}

.home-headline{
    margin: 1.2rem 0 1rem 0;
    font-size: clamp(2.6rem, 5.5vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #1d1d1f;
    font-weight: 700;
}

.home-headline-accent{
    display: inline;
    background: linear-gradient(183deg, #55582d 0%,#666931 8.33%,#777a35 10.42%,#868a39 12.5%,#94993d 14.58%,#a2a740 16.67%,#aeb443 18.75%,#bac046 20.83%,#c4cb48 22.92%,#cdd44b 25%,#d4dc4c 27.08%,#dae24e 29.17%,#dee64f 31.25%,#dfe74f 33.33%,#dee64f 35.42%,#dce54e 37.5%,#d8e34d 39.58%,#d3e04c 41.67%,#cddd4a 43.75%,#c6d948 45.83%,#bfd446 47.92%,#b6cf43 50%,#adca41 52.08%,#a4c53e 54.17%,#9abf3b 56.25%,#8fb838 58.33%,#83b235 60.42%,#78ab31 62.5%,#6ba42e 64.58%,#5e9c2a 66.67%,#578f29 68.75%,#518328 70.83%,#4b7727 72.92%,#456c26 75%,#406125 77.08%,#3b5724 79.17%,#364e23 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.home-headline-accent::after{
    content: "a full‑stack designer";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(183deg, #55582d 0%,#666931 8.33%,#777a35 10.42%,#868a39 12.5%,#94993d 14.58%,#a2a740 16.67%,#aeb443 18.75%,#bac046 20.83%,#c4cb48 22.92%,#cdd44b 25%,#d4dc4c 27.08%,#dae24e 29.17%,#dee64f 31.25%,#dfe74f 33.33%,#dee64f 35.42%,#dce54e 37.5%,#d8e34d 39.58%,#d3e04c 41.67%,#cddd4a 43.75%,#c6d948 45.83%,#bfd446 47.92%,#b6cf43 50%,#adca41 52.08%,#a4c53e 54.17%,#9abf3b 56.25%,#8fb838 58.33%,#83b235 60.42%,#78ab31 62.5%,#6ba42e 64.58%,#5e9c2a 66.67%,#578f29 68.75%,#518328 70.83%,#4b7727 72.92%,#456c26 75%,#406125 77.08%,#3b5724 79.17%,#364e23 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(16px);
    opacity: 0.5;
    z-index: -1;
    animation: neoGlow 4s ease-in-out infinite;
}

@keyframes neoGlow{
    0%, 100% { opacity: 0.3; filter: blur(14px); }
    50% { opacity: 0.6; filter: blur(20px); }
}

.home-subhead{
    margin: 0 0 1.8rem 0;
    font-size: 1.15rem;
    line-height: 1.5;
    color: #6e6e73;
    max-width: 46ch;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.home-cta-row{
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.home-cta-primary,
.home-cta-secondary{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.18s ease-out, box-shadow 0.25s ease-out, background 0.25s ease-out, border-color 0.25s ease-out, color 0.2s ease-out;
    will-change: transform;
    outline: none;
}

.home-cta-primary{
    color: #f5f5f7;
    background: #1d1d1f;
    border: 1px solid #1d1d1f;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.home-cta-primary:hover,
.home-cta-primary:focus{
    transform: translateY(-2px);
    background: #000000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.home-cta-secondary{
    color: #1d1d1f;
    background: rgba(255,255,255,0.9);
    border: 1px solid #d2d2d7;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.home-cta-secondary:hover,
.home-cta-secondary:focus{
    transform: translateY(-2px);
    border-color: #1d1d1f;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.home-cta-primary:focus-visible,
.home-cta-secondary:focus-visible{
    outline: 3px solid #1d1d1f;
    outline-offset: 4px;
}

.home-hero-preview{
    position: relative;
    min-height: 380px;
}

.home-orb{
    position: absolute;
    border-radius: 999px;
    filter: blur(30px);
    opacity: 0;
    transform: translateZ(0);
    animation: none;
    pointer-events: none;
}
.orb-a{ width: 240px; height: 240px; left: 15%; top: 10%; background: rgba(0, 0, 0, 0.04); }
.orb-b{ width: 220px; height: 220px; right: 10%; top: 22%; background: rgba(0, 0, 0, 0.03); }
.orb-c{ width: 260px; height: 260px; left: 25%; bottom: 0%; background: rgba(0, 0, 0, 0.03); }

@keyframes orbFloat{
    0%,100%{ transform: translate3d(0,0,0) scale(1); }
    50%{ transform: translate3d(0,0,0) scale(1); }
}

.home-preview-card{
    position: absolute;
    inset: 15% 6% 8% 12%;
    border-radius: 20px;
    border: 1px solid #d2d2d7;
    background: #1d1d1f;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: perspective(900px) rotateX(calc((0.5 - var(--my)) * 4deg)) rotateY(calc((var(--mx) - 0.5) * 6deg));
    transition: transform 0.2s ease-out;
}

.home-preview-grid{
    position: absolute;
    inset: -2px;
    background: none;
    opacity: 0;
    animation: none;
}

@keyframes previewGrid{
    0%{ background-position: 0 0, 0 0; }
    100%{ background-position: 0 0, 0 0; }
}

.home-preview-lines{
    position: absolute;
    inset: 18% 10% 16% 10%;
    display: grid;
    gap: 0.9rem;
}

.home-preview-line{
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.0), rgba(255,255,255,0.15), rgba(255,255,255,0.08), rgba(255,255,255,0.12), rgba(255,255,255,0.0));
    opacity: 0.6;
    filter: blur(0.2px);
    animation: none;
}

.home-preview-line:nth-child(2){ animation: none; }
.home-preview-line:nth-child(3){ animation: none; }

@keyframes lineSweep{
    0%{ transform: translateX(0%); opacity: 0.6; }
    50%{ transform: translateX(0%); opacity: 0.6; }
    100%{ transform: translateX(0%); opacity: 0.6; }
}

/* Typing panel inside preview card */
.home-typing{
    position: absolute;
    inset: 22% 10% 18% 10%;
    display: grid;
    align-content: center;
    gap: 0.75rem;
    color: #76767c;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.home-typing-label{
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.home-typing-row{
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    font-size: 1.05rem;
    line-height: 1.4;
}

.home-typing-prefix{
    color: #f5f5f7;
}

.home-typing-text{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 34ch;
}

.home-caret{
    width: 9px;
    height: 1.05em;
    background: #f5f5f7;
    border-radius: 2px;
    transform: translateY(2px);
    animation: caretBlink 1s steps(1, end) infinite;
}

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

/* Tilt interaction on project cards (home only) */
body.home .cover-container.tilt{
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.18s ease-out, box-shadow 0.25s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    will-change: transform;
}

body.home .cover-container.tilt:hover{
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body.home .cover-container.tilt .image{
    transition: transform 0.8s ease-in-out;
    transform: scale(1.01);
}

body.home .cover-container.tilt:hover .image{
    transform: scale(1.06);
}

@media (max-width: 980px){
    .home-hero{
        padding: 7rem 1.5rem 2.5rem 1.5rem;
        min-height: auto;
    }
    .home-hero-inner{
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }
    .home-hero-preview{
        min-height: 320px;
    }
    .home-preview-card{
        inset: 10% 2% 6% 2%;
    }
    .home-preview-grid{
        display: none;
    }
    body.home section.project .container{
        padding: 0 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce){
    .home-hero::before,
    .home-orb,
    .home-preview-grid,
    .home-preview-line,
    .home-caret,
    .home-headline-accent::after{
        animation: none !important;
    }
    body.home .cover-container.tilt{
        transition: none !important;
        transform: none !important;
    }
}

/* Header: transparent at top, glass on scroll (all pages) */
.header{
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
    transition:
        background-color 420ms ease,
        box-shadow 420ms ease,
        border-bottom-color 420ms ease,
        backdrop-filter 420ms ease,
        -webkit-backdrop-filter 420ms ease;
}

.header.scrolled{
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.main {
    /* display: flex; */
    padding: 2rem 0;
    flex-wrap: wrap;
}

.top-container {
    line-height: 1.5rem;
}

.p-about {
    text-align: left;
    line-height: 1.5rem;
    margin-right: 0.5rem;
    max-width: 55rem;
    display: block;
}

.about{
    padding: 0 1.5rem;
    line-height: 250%;
}

.p-caption {
    text-align: center;
}

.header {
    padding: 0.625rem 2.5rem;
    text-align: center;
}

.header-content{
    max-width: 1400px;
    margin: auto;
}

.content {
  padding: 1rem 0;
}

/* Make `.main.content` align with `.header-content` */
.main.content{
    max-width: 1400px;
    min-height: 90vh;
    margin: 0 auto;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1;
}

.sticky + .content {
  padding-top: 6.375rem;
}

.top-logo {
    padding: 1rem 1rem 2rem 1rem;
    margin-top: 3.3rem;
}

.top-logo a{
    text-decoration: none;
    color: inherit;
}

.top-logo img{
    width: 3rem;
    margin: 0.8rem;
    display: inline-block;
    vertical-align: middle;
}

.top-logo h1{
    display: inline-block;
    vertical-align: middle;
}

.top-logo a.intext-link{
    text-decoration: underline;
}

a#sticky-logo {
    display: none;
    float: left;
    margin: 0.2rem 0.6rem;
}

a#sticky-logo img {
    width: 7.2rem;
    vertical-align: middle;
}

/* Headings */
h1 {
    font-family: -apple-system, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
    font-size: 2.3em;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.8em;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.425em;
    font-weight: 400;
    color: #76767c;
}

h4 {
    font-size: 1.2em;
    font-weight: 400;
}

p {
    font-size: 1.1em;
    font-weight: 400;
    max-width: 46em;
    line-height: 1.5em;
}

h3.logo-text{
    margin: 0;
    text-decoration: none;
    color: #1d1d1f;
}

a#sticky-logo{
    text-decoration: none;
}

#work h2, #contact h2, h2#bio, h2#contact, h2#illustration, h2#logo, h2#photography, h2#graphic{
    border-left: 3px solid #1d1d1f;
    padding-left: 1rem;
}

.color-text {
    color: #1d1d1f;
}

.emphasize-text {
    font-size: 1.4rem;
    font-weight: 400;
    margin-right: 0.2rem;
}


/* navigation bar */
a.nav-button img {
    width: 4rem;
}

/* Dropdown Button */
.dropbtn {
  font-size: 1.1rem;
  border: none;
  padding: 0.2rem 0.5rem;
  background: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  padding: 0.5rem 0.75rem;
  display: none;
  position: absolute;
  background: #1d1d1f;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 1;
  text-align: left;
  padding-top: 0.85rem;
  border-radius: 12px;
  border: none;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: #f5f5f7;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
  display: block;
  margin: 0.1rem 0;
  background-color: transparent;
  border-radius: 8px;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover,  .dropdown-content a.work-active{
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
    transform: none;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropdown-content a:nth-child(1) {
    animation: drop 0.1s ease-in-out;
}
.dropdown:hover .dropdown-content a:nth-child(2) {
    animation: drop 0.2s ease-in-out;
}
.dropdown:hover .dropdown-content a:nth-child(3) {
    animation: drop 0.3s ease-in-out;
}
.dropdown:hover .dropdown-content a:nth-child(4) {
    animation: drop 0.4s ease-in-out;
}
.dropdown:hover .dropdown-content a:nth-child(5) {
    animation: drop 0.5s ease-in-out;
}
.dropdown:hover .dropdown-content a:nth-child(6) {
    animation: drop 0.6s ease-in-out;
}

@keyframes drop {
    0%   {opacity: 0; transform-origin: top left; transform: scaleY(0);}
    100% {opacity: 1; transform-origin: top left; transform: scaleY(1);}
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    border-bottom: transparent 1px solid;
    transition: color 0.3s ease-in-out;
}

.dropbtn:focus {
    color: #1d1d1f;
    border-bottom: transparent 1px solid;
    transition: color 0.3s ease-in-out;
}

span.nav-span {
    display: inline-block;
    margin: 0 0.8rem;
    padding: 0 0 0.2rem 0rem;
    position: relative;
}

span.nav-span a.nav-button {
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    color: #1d1d1f;
    padding: 0.2rem 0.5rem;
}

span.nav-span:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 0px;
    border-bottom: 1px solid #1d1d1f;
    bottom: 2px;
    -webkit-transform: scaleX(1);
    -ms-transform: scaleX(1);
    transform: scaleX(1);
    transform-origin: right;
    -webkit-transition: -webkit-transform 0.3s ease-in;
    transition: transform 0.3s ease-in;
}

span.nav-span:hover:before {
    -webkit-transform: scaleX(0);
    -ms-transform: scaleX(0);
    transform: scaleX(0);
}

/* grid */
.grid-box {
    padding: 0;
    width: 100%;
    height: auto;
    display: flex;
    flex-flow: row wrap;
    -webkit-flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
}

.sub-grid-box {
    padding: 0;
    margin: 0 0.5em;
    width: 45%;
    height: auto;
}

a.project-link {
    text-decoration: none;
    color: inherit;
}

.project-link .project-div {
    background: #fff;
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-link:hover .project-div, .project-link:focus .project-div {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* flexbox */
.container {
    display: flex;
    flex-wrap: wrap;
}

.flex-project {
    padding: 0.5rem 1rem;
    flex: 1 1 18rem;
    justify-content: space-around;
}

/* button */
a.link-button, p.link-button {
    display: block;
    padding: 0.6rem 2.4rem;
    font-size: 1rem;
    font-weight: 400;
    color: #76767c;
    background-color: white;
    text-decoration: none;
    width: 12rem;
    text-align: center;
    letter-spacing: 0.06rem;
    line-height: 1rem;
    border: 1.5px solid #d2d2d7;
    border-radius: 999px;
    transition: all 0.3s ease;
}

a.link-button:hover, a.link-button:focus, p.link-button:hover, p.link-button:focus {
    color: #1d1d1f;
    border-color: #1d1d1f;
    transition: all 0.3s ease;
}

a.link-button-dark {
    display: block;
    padding: 0.7rem 2.7rem;
    margin: 1rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    background: #1d1d1f;
    text-decoration: none;
    width: 12rem;
    text-align: center;
    letter-spacing: 0.06rem;
    border-radius: 999px;
    border: 1px solid #1d1d1f;
    color: #f5f5f7;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translateY(0);
    transform-origin: center;
    transition:
        background 0.25s ease-out,
        box-shadow 0.25s ease-out,
        transform 0.18s ease-out,
        border-color 0.25s ease-out,
        color 0.2s ease-out;
}

a.link-button-dark:hover, a.link-button-dark:focus {
    color: #ffffff;
    background: #000000;
    border-color: #000000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

a.intext-link {
    color: #1d1d1f;
    cursor: pointer;
    transition: color .3s ease;
}

a.intext-link:hover, a.intext-link:focus {
    color: #76767c;
}

.arrow-btn img{
    width: 9%;
}

.arrow-btn img:hover{
    animation: nudgeX 0.7s alternate infinite;
}

@keyframes nudgeX {
    0%   {transform: translateX(0px);}
    25%  {transform: translateX(0px);}
    75%  {transform: translateX(5px);}
    100% {transform: translateX(5px);}
}

div.img-cover img {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    width: 100%;
    background-color: #f5f5f7;
    height: 15rem;
    cursor: pointer;
    object-fit: cover;
    transition: all .3s ease-in-out;
}

.title {
    width: 100%;
    margin-top: 3rem;
}

.subtitle {
    font-size: 1.1em;
    font-weight: 400;
    color: #76767c;
    width: 100%;
    line-height: 1.5em;
    margin-top: 0;
}

.subsubtitle {
    font-size: 1em;
    font-weight: 400;
    color: #a6a6a6;
    width: 100%;
    line-height: 1.3em;
    margin-top: 0;
}

footer {
    margin-top: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    /* background-color: #f5f5f7; */
    color: #76767c;
}

footer .intext-link{
    color: #76767c;
}

footer .intext-link:hover{
    color: #1d1d1f;
}

footer p{
    text-align: center;
    margin: auto;
}

.page{
    min-height: calc(100vh - 115.09px);
}
.page ~ footer{
    margin-top: 0;
}

/* style for project page */
.p-title {
    width: 100%;
    margin-bottom: 0rem;
}

.p-list{
    line-height: 1.5em;
    font-weight: 400;
}

a#nav-logo img {
    width: 3.5rem;
    cursor: pointer;
}

.img-caption {
    text-align: center;
    color: #76767c;
    font-size: 0.9rem;
}

.project-container {
    position: relative;
    height: auto;
    width: 60%;
    margin: 5rem auto;
}

.project-img {
    width: 100%;
    margin-top: 0.8rem;
}

.scoll-box {
    width: auto;
    height: 400px;
    overflow-y: scroll;
    margin-top: 0.8rem;
}

.scoll-box .project-img{
    margin-top: 0;
}

.img-height{
    max-height: 50rem;
    width: auto;
}

.project-gif {
    width: 85.7%;
}

.project-phone {
    width: 12rem;
}

.project-screenshot {
    width: 7.6rem;
}

.project-screenshot.over-img{
    position: absolute;
    top: 14%;
    left: 24.8%;
}

/* allow for lazyloaded images to be blurred until loaded*/
.blur {
	-webkit-filter: blur(5px);
	filter: blur(5px);
	transition: filter 400ms;
}

/* Once image has loaded - and lazysizes.js has applied the .lazyloaded class - we can be more specific with our CSS selectors to allow for the blur to be removed from our image.*/
.blur.lazyloaded {
	-webkit-filter: blur(0);
	filter: blur(0);
}

.parent{
    position: relative;
}

.over-img{
    position: absolute;
    top: 13.4%;
    left: 7.8%;
}

.scroll-group-title {
    display: block;
    color: #76767c;
    text-align: left;
}

.scroll-group {
    overflow: auto;
    white-space: nowrap;
}

.step {
    display: inline-block;
    margin: 0 -0.3rem 0 0;
}

.step-content {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    flex-basis: 5rem;
}

.step-text {
    width: 12rem;
    height: 5.2rem;
    white-space: normal;
    text-align: center;
    padding: 0.2rem 0.3rem;
    background-color: #f5f5f7;
    border-left: 1px solid #e8e8ed;
    margin: 0;
}

/* Image Hover Overlay */
.cover-container {
  position: relative;
  cursor: pointer;
  margin: 0.5rem 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateZ(0);
  transform-style: preserve-3d;
}

.image {
  display: block;
  width: 100%;
  height: 20rem;
  object-fit: cover;
  box-shadow: none;
  transform-origin: center center;
  transition: all 1s ease-in-out;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .3s ease;
  border-radius: inherit;
  background: rgba(29, 29, 31, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.overlay::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  pointer-events: none;
}

.overlay::before{
  content: "";
  position: absolute;
  inset: -40%;
  background: none;
  opacity: 0;
  transform: translate3d(0,0,0);
  animation: overlaySheen 8s ease-in-out infinite;
  pointer-events: none;
}

.cover-container:hover .overlay::before{
  opacity: 0;
}

.cover-container:hover .overlay {
  opacity: 1;
}

.cover-container:hover .image {
    transform: scale(1.04);
    transition: all 1.5s ease-in-out;
}

@keyframes overlaySheen{
  0%{ transform: translate3d(0, 0, 0); }
  50%{ transform: translate3d(0, 0, 0); }
  100%{ transform: translate3d(0, 0, 0); }
}

.text {
  color: black;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

.text h3{
    color: #f5f5f7;
    text-shadow: none;
}

.blur-filter {
    -webkit-filter: blur(3px);
    -moz-filter: blur(3px);
    -o-filter: blur(3px);
    -ms-filter: blur(3px);
    filter: blur(3px);
}

.animated-svg{
    z-index: -1;
    display: inline-block;
    width: 18%;
    height: auto;
    position: absolute;
    right: 10%;
    top: 5rem;
}

.path {
  stroke-dasharray: 3346;
  stroke-dashoffset: 3346;
  animation: dash 9s linear alternate infinite;
}

@keyframes dash {
  0% {
    stroke-dashoffset: 3000;
  }
  80% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* breakpoints */
@media (min-width:1400px) {
    .main {
        margin: auto;
        max-width: 1400px;
    }
    .content {
        padding: auto;
    }
}

@media (max-width:980px) {
    .home-hero-preview{
        display: none;
    }
}

@media (max-width:900px) {
    h1 {
      font-size: 2em;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.275em;
    }

    h4 {
        font-size: 1.1em;
    }

    p {
        font-size: 1rem;
        line-height: 1.4rem;
    }

    .main{
        margin: 0;
        padding: 2rem 2rem;
    }

    .sub-grid-box {
        width: auto;
    }

    .project-container{
        width: 80%;
    }

    h2.p-title {
        margin-bottom: 0;
    }

    .image {
        height: 16rem;
    }
}

@media (max-width:650px){
    ul {
        top: 0;
        left: 0;
        position: relative;
    }

    a.nav-button {
        font-size: 1rem;
    }

    a.intext-link {
        margin-bottom: 0.4rem;
    }

    .dropbtn {
        font-size: 1rem;
    }

    .main {
      margin: 0;
      padding: 0.8rem 1.6rem;
    }

    .sub-grid-box {
        margin: 0.5rem;
    }

    .project-container{
        width: 86%;
        margin-top: 3rem;
        margin-bottom: 0;
    }

    section {
        margin: 1rem 0.5rem;
    }

    .top-logo {
        margin-top: 3.3rem;
    }

    .page ~ footer{
        margin-top: 2rem;
    }

    .about{
        padding: 0 0.5rem;
    }

    .arrow-btn img{
        width: 11%;
    }
}

@media (max-width:495px) {
    a.link-button, p.link-button {
        width: 100%;
    }

    a.link-button-dark {
        width: 100%;
    }

    a.nav-button {
        font-size: 0.9rem;
        margin: 0.7rem 0.25rem;
    }
    span.nav-span a.nav-button {
        margin: 0;
    }
    .dropbtn {
        font-size: 0.9rem;
    }

    a#sticky-logo img {
        width: 1.6rem;
    }

    .link-item {
        width: 90%;
    }

    .flex-project {
        padding: 0.5rem;
    }

    .scoll-box {
        height: 300px;
        margin-top: 0.4rem;
    }

    .arrow-btn img{
        width: 4rem;
    }
}

@media (max-width: 320px) {
    span.nav-span {
        margin: 0 0.4rem;
    }
}

/*style for gallery page*/
.link-item {
    display: inline-block;
}

.row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 0.25rem;
}

/* Create four equal columns that sits next to each other */
.column {
    flex: 25%;
    max-width: 25%;
    padding: 0 0.25rem;
}

.column img {
    margin-top: 0.5rem;
    vertical-align: middle;
    width: 100%;
    cursor: pointer;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media (max-width: 800px) {
    .column {
        flex: 50%;
        max-width: 50%;
    }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media (max-width: 600px) {
    .column {
        flex: 100%;
        max-width: 100%;
    }
}

iframe {
    width:100%;
    border:0;
    overflow:hidden;
}

/* Imitate Instagram feed*/
.ins-container{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}
.ins-item{
    width: 33.33%;
}

@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.css);
.footer-social-icons {
    color: #76767c;
    -webkit-font-smoothing: antialiased;
}
.footer-social-icons a {
    text-decoration: none;
    color: #1d1d1f;
}
.footer-social-icons p > .footer-social-icons a:hover{
    color: #76767c;
    text-decoration:  underline;
}
.footer-social-icons h1,
.footer-social-icons h2,
.footer-social-icons h3,
.footer-social-icons h4,
.footer-social-icons h5,
.footer-social-icons h6 {
    margin:  1% 0 1% 0;
}
._12 {
    font-size: 1.2em;
}
._14 {
    font-size: 1.4em;
}
ul.social-icons {
    padding:0;
    list-style: none;
}
.footer-social-icons {
    width: 350px;
    display: block;
}
.social-icon {
    color: #1d1d1f;
}
ul.social-icons {
    margin-top: 10px;
}
.social-icons li {
    vertical-align: top;
    display: inline;
    height: 100px;
}
.social-icons a {
    color: #1d1d1f;
    text-decoration: none;
}
.fa-facebook {
    padding:10px 14px;
    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition: .5s;
    background-color: #e8e8ed;
}
.fa-facebook:hover {
    background-color: #d2d2d7;
}
.fa-youtube {
    padding:10px 14px;
    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition: .5s;
    background-color: #e8e8ed;
}
.fa-youtube:hover {
    background-color: #d2d2d7;
}
.fa-instagram, .fa-linkedin-in, .fa-github, .fa-behance, .fa-dribbble {
    padding:10px 12px;
    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition: .5s;
    background-color: #e8e8ed;
}
.fa-instagram:hover {
    background-color: #d2d2d7;
}
.fa-linkedin-in:hover {
    background-color: #d2d2d7;
}
.fa-github:hover {
    background-color: #d2d2d7;
}
.fa-behance:hover {
    background-color: #d2d2d7;
}
.fa-dribbble:hover {
    background-color: #d2d2d7;
}

/* Style the Image Used to Trigger the Modal */
#myImg {
    cursor: pointer;
    transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

/* Modal Content (Image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: normal;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.row > .column {
  padding: 0 8px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Create four equal columns that floats next to eachother */
.column {
  float: left;
  width: 25%;
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

/* Modal Content */
.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 60%;
  max-width: 1200px;
}

.project-modal {
    width: 80%;
}

/* Hide the slides by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: normal;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Caption text */
.caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}

img.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.view-large {
    cursor: zoom-in;
}
.view-small {
    cursor: zoom-out;
}

@media only screen and (max-width: 700px){
    .modal-content {
      width: 90%;
    }
    .project-modal {
        width: 100%;
    }
}

/* Typewriter */
.var-highlight{
    color: #76767c;
}
.string-highlight{
    color: #a2845e;
}

#typewriter{
    font-size: 1.6em;
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    height: 250px;
    display: inline-block;
    color: #1d1d1f;
}
#typewriter:after{
    content: "|";
    animation: blink 500ms linear infinite alternate;
}

@-webkit-keyframes blink{
    0%{opacity: 0;}
    100%{opacity: 1;}
}

@-moz-keyframes blink{
    0%{opacity: 0;}
    100%{opacity: 1;}
}

@keyframes blink{
    0%{opacity: 0;}
    100%{opacity: 1;}
}

@media only screen and (max-width: 650px){
    #typewriter{
        font-size: 1.5em;
        height: 216px;
    }
}

@media only screen and (max-width: 495px){
    #typewriter{
        font-size: 1.1em;
        height: 160px;
    }
}

/* ===== Vintage macOS Hero ===== */
.vintage-mac {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    animation: macFloat 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* Idle floating animation */
@keyframes macFloat {
    0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
    25% { transform: translateY(-6px) rotateX(1deg) rotateY(-0.5deg); }
    50% { transform: translateY(-3px) rotateX(0.5deg) rotateY(0.5deg); }
    75% { transform: translateY(-8px) rotateX(-0.5deg) rotateY(-0.3deg); }
}

/* Pause idle animation on hover */
.home-hero-preview:hover .vintage-mac {
    animation-play-state: paused;
}

/* Emoji boom container */
.emoji-boom-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Individual emoji particle */
.emoji-particle {
    position: absolute;
    font-size: 2.4rem;
    opacity: 0;
    filter: sepia(30%) saturate(85%) brightness(95%);
    pointer-events: none;
    animation: emojiBurst 1.4s ease-out forwards;
}

/* Emoji burst animation - vintage feel */
@keyframes emojiBurst {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2) rotate(-10deg);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2) rotate(var(--rotate-mid));
    }
    60% {
        opacity: 0.85;
        transform: translate(calc(var(--tx) * 0.6), calc(var(--ty) * 0.6)) scale(1) rotate(calc(var(--rotate-mid) * 1.2));
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.6) rotate(var(--rotate-end));
    }
}

.mac-desktop {
    width: 340px;
    height: 280px;
    background: #c0c0c0;
    border: 2px solid #808080;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    font-family: "Geneva", "Helvetica Neue", -apple-system, system-ui, sans-serif;
    font-size: 11px;
    color: #000;
    box-shadow:
        2px 2px 0 #fff inset,
        -1px -1px 0 #808080 inset,
        4px 6px 20px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* Menu bar */
.mac-menubar {
    display: flex;
    align-items: center;
    gap: 0;
    background: #ddd;
    border-bottom: 1px solid #808080;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 400;
}

.mac-apple {
    font-size: 14px;
    margin-right: 10px;
    line-height: 1;
}

.mac-menu-item {
    padding: 2px 8px;
    border-radius: 0;
    cursor: default;
}

.mac-menu-item:active,
.mac-menu-item:first-of-type {
    background: #000;
    color: #fff;
}

/* Window */
.mac-window {
    flex: 1;
    margin: 8px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    box-shadow:
        1px 1px 0 #808080 inset,
        -1px -1px 0 #fff inset;
    overflow: hidden;
}

.mac-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    background: linear-gradient(180deg, #ddd, #bbb);
    border-bottom: 1px solid #808080;
    font-size: 11px;
    font-weight: 600;
    min-height: 22px;
}

.mac-window-title {
    text-align: center;
    width: 100%;
}

.mac-window-controls {
    display: flex;
    gap: 4px;
    /* position: absolute; */
    left: 8px;
}

.mac-ctrl {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid #000;
    background: #ddd;
}

.mac-close { background: #ff5f57; border-color: #e0443e; }
.mac-minimize { background: #febc2e; border-color: #dea123; }
.mac-zoom { background: #28c840; border-color: #1aab29; }

/* Window body */
.mac-window-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.mac-sidebar {
    width: 100px;
    background: #e8e8e8;
    border-right: 1px solid #c0c0c0;
    padding: 6px 0;
    flex-shrink: 0;
}

.mac-sidebar-item {
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    cursor: default;
}

.mac-sidebar-active {
    background: #000;
    color: #fff;
    border-radius: 0;
}

.mac-icon {
    font-size: 12px;
    line-height: 1;
}

/* Content area */
.mac-content {
    flex: 1;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mac-content-title {
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
}

.mac-file-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 2px;
    font-size: 11px;
}

.mac-file-row:hover {
    background: rgba(0,0,0,0.05);
}

.mac-file-icon {
    font-size: 13px;
    flex-shrink: 0;
}

.mac-file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mac-file-size {
    color: #999;
    font-size: 10px;
    flex-shrink: 0;
}

/* Trash icon */
.mac-trash {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 16px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 980px) {
    .mac-desktop {
        width: 300px;
        height: 250px;
    }
}

@media (max-width: 600px) {
    .mac-desktop {
        width: 260px;
        height: 220px;
        font-size: 10px;
    }
    .mac-sidebar { width: 80px; }
    .mac-menubar { padding: 2px 5px; font-size: 10px; }
}
