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

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

body {
    font-family: 'Helvetica Neue', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0f172a;
    /* background:
        radial-gradient(circle at top left, #fdfbff 0, #f3f4f8 45%, #eef2ff 100%);
    -webkit-font-smoothing: antialiased; */
    /* margin: 0;
    padding: 0; */
} 

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

/* Override the global `section { margin: ... }` rule on home.
   Spacing is controlled via padding instead, to avoid “framed” edges. */
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:
        radial-gradient(1000px 600px at calc((var(--mx)) * 100%) calc((var(--my)) * 100%), rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0) 60%),
        radial-gradient(900px 520px at 15% 10%, rgba(34, 197, 94, 0.16), rgba(34, 197, 94, 0) 55%),
        radial-gradient(900px 520px at 85% 30%, rgba(99, 102, 241, 0.18), rgba(99, 102, 241, 0) 55%),
        linear-gradient(180deg, #ffffff 0%, #f5f7ff 55%, #eef2ff 100%);
}

.home-hero::after{
    content:"";
    position:absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 140px;
    background: linear-gradient(180deg, rgba(238, 242, 255, 0) 0%, rgba(238, 242, 255, 0.65) 55%, rgba(238, 242, 255, 1) 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, #eef2ff 0%, #f3f4f8 35%, #ffffff 100%);
}

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

/* Home alignment: match hero/header edge exactly */
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:
        linear-gradient(to right, rgba(15, 23, 42, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.07) 1px, transparent 1px);
    background-size: 70px 70px;
    opacity: 0.35;
    mask-image: radial-gradient(circle at 50% 35%, rgba(0,0,0,1), rgba(0,0,0,0) 62%);
    -webkit-mask-image: radial-gradient(circle at 50% 35%, rgba(0,0,0,1), rgba(0,0,0,0) 62%);
    transform: translateZ(0);
    animation: homeGridDrift 18s linear infinite;
    pointer-events: none;
}

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

.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.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.7);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-headline{
    margin: 1rem 0 1rem 0;
    font-size: clamp(2.1rem, 4.4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0b1220;
}

.home-headline-accent{
    background: linear-gradient(90deg, #0ea5e9, #22c55e, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-subhead{
    margin: 0 0 1.6rem 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(15, 23, 42, 0.72);
    max-width: 46ch;
}

.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: #f8fafc;
    background: linear-gradient(135deg, #020617 0%, #075985 45%, #0ea5e9 100%);
    background-size: 140% 140%;
    background-position: 30% 30%;
    border: 1px solid rgba(56, 189, 248, 0.98);
    box-shadow:
        0 18px 55px rgba(2, 6, 23, 0.30),
        0 0 0 1px rgba(56, 189, 248, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    text-shadow: 0 10px 22px rgba(2, 6, 23, 0.55);
    filter: saturate(115%) contrast(110%);
}
.home-cta-primary:hover,
.home-cta-primary:focus{
    transform: translateY(-2px);
    background-position: 60% 45%;
    box-shadow:
        0 26px 80px rgba(2, 6, 23, 0.38),
        0 0 0 1px rgba(56, 189, 248, 0.65),
        0 0 34px rgba(56, 189, 248, 0.65);
}

.home-cta-secondary{
    color: rgba(2, 6, 23, 0.92);
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.10);
}
.home-cta-secondary:hover,
.home-cta-secondary:focus{
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 22px 70px rgba(2, 6, 23, 0.14);
}

.home-cta-primary:focus-visible,
.home-cta-secondary:focus-visible{
    outline: 3px solid rgba(56, 189, 248, 0.85);
    outline-offset: 4px;
}

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

.home-orb{
    position: absolute;
    border-radius: 999px;
    filter: blur(30px);
    opacity: 0.85;
    transform: translateZ(0);
    animation: orbFloat 9s ease-in-out infinite;
    pointer-events: none;
}
.orb-a{ width: 240px; height: 240px; left: 15%; top: 10%; background: rgba(56, 189, 248, 0.38); }
.orb-b{ width: 220px; height: 220px; right: 10%; top: 22%; background: rgba(99, 102, 241, 0.32); animation-delay: -2s; }
.orb-c{ width: 260px; height: 260px; left: 25%; bottom: 0%; background: rgba(34, 197, 94, 0.25); animation-delay: -4s; }

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

.home-preview-card{
    position: absolute;
    inset: 15% 6% 8% 12%;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.86));
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.35);
    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:
        linear-gradient(to right, rgba(148, 163, 184, 0.18) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
    background-size: 38px 38px;
    opacity: 0.55;
    mask-image: radial-gradient(circle at 50% 35%, rgba(0,0,0,1), rgba(0,0,0,0) 65%);
    -webkit-mask-image: radial-gradient(circle at 50% 35%, rgba(0,0,0,1), rgba(0,0,0,0) 65%);
    animation: previewGrid 14s linear infinite;
}

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

.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(56, 189, 248, 0.0), rgba(56, 189, 248, 0.55), rgba(34, 197, 94, 0.4), rgba(99, 102, 241, 0.52), rgba(56, 189, 248, 0.0));
    opacity: 0.85;
    filter: blur(0.2px);
    animation: lineSweep 2.4s ease-in-out infinite;
}
.home-preview-line:nth-child(2){ animation-delay: -0.8s; }
.home-preview-line:nth-child(3){ animation-delay: -1.6s; }

@keyframes lineSweep{
    0%{ transform: translateX(-10%); opacity: 0.35; }
    50%{ transform: translateX(0%); opacity: 0.95; }
    100%{ transform: translateX(10%); opacity: 0.35; }
}

/* Typing panel inside preview card */
.home-typing{
    position: absolute;
    inset: 22% 10% 18% 10%;
    display: grid;
    align-content: center;
    gap: 0.75rem;
    color: #e5e7eb;
    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(229, 231, 235, 0.65);
}
.home-typing-row{
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    font-size: 1.05rem;
    line-height: 1.4;
}
.home-typing-prefix{
    color: rgba(56, 189, 248, 0.95);
}
.home-typing-text{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 34ch;
}
.home-caret{
    width: 9px;
    height: 1.05em;
    background: rgba(56, 189, 248, 0.95);
    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 0.05rem 0.5rem rgba(0, 0, 0, 0.05), 0 22px 70px rgba(2, 6, 23, 0.10);
    will-change: transform;
}
body.home .cover-container.tilt:hover{
    box-shadow: 0 0.05rem 0.5rem rgba(0, 0, 0, 0.06), 0 30px 90px rgba(2, 6, 23, 0.18);
}
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{
        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.5);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}

.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;
    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: 'Hammersmith One', sans-serif;
    font-size: 2.3em;
    font-weight: 700;
}

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

h3 {
    font-size: 1.425em;
    font-weight: 400;
    color: #57606f;
}

h4 {
    font-size: 1.2em;
    font-weight: 300;
    /* color: #57606f; */
}

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

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

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

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

.color-text {
    color: #63cdda;
}

.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;
  /* border-bottom: #000 1px solid; */
  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: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  min-width: 220px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
  z-index: 1;
  text-align: left;
  padding-top: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

/* Links inside the dropdown */
.dropdown-content a {
  color: #e5e7eb;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
  display: block;
  margin: 0.1rem 0;
  background-color: transparent;
  border-radius: 999px;
  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: #e5f9ff;
    background: linear-gradient(120deg, rgba(99, 205, 218, 0.2), rgba(56, 189, 248, 0.35));
    box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.6), 0 0 18px rgba(56, 189, 248, 0.65);
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, transform 0.15s ease-out;
    transform: translateY(-1px);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
    /* animation: drop 0.3s ease-in-out; */
}

.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: #63cdda;
    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: #000000;
    padding: 0.2rem 0.5rem;
}

span.nav-span:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 0px;
    border-bottom: 1px solid black;
    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.1);
}

/* 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: #57606f;
    background-color: white;
    text-decoration: none;
    width: 12rem;
    text-align: center;
    letter-spacing: 0.06rem;
    line-height: 1rem;
    border: 2px solid #57606f;
}
    
a.link-button:hover, a.link-button:focus, p.link-button:hover, p.link-button:focus {
    color: white;
    background-color: #57606f;
    transition: background-color 0.3s;
}
    
a.link-button-dark {
    display: block;
    padding: 0.7rem 2.7rem;
    margin: 1rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    background-image: linear-gradient(130deg, #020617, #0f172a, #111827);
    text-decoration: none;
    width: 12rem;
    text-align: center;
    letter-spacing: 0.06rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.45),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(0);
    transform-origin: center;
    transition:
        background-image 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: #ecfeff;
    background-image: linear-gradient(130deg, #0f172a, #0369a1, #22c1c3);
    border-color: rgba(56, 189, 248, 0.9);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.75),
        0 0 0 1px rgba(56, 189, 248, 0.95),
        0 0 28px rgba(56, 189, 248, 0.85);
    transform: translateY(-2px) scale(1.02);
}

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

a.intext-link:hover, a.intext-link:focus {
    color: #63cdda;
}

.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: 0px 0px 10px #f1f2f6;
    width: 100%;
    background-color: #ccc;
    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: #57606f;
    width: 100%;
    line-height: 1.5em;
    margin-top: 0;
}

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

footer {
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    text-align: center;
    /* border-top: 1.1px solid #f1f1f1; */
    /* background-color: #000; */
    color: rgba(15, 23, 42, 0.6);
}

footer .intext-link{
    color: #dadada;
}

footer .intext-link:hover{
    color: #57606f;
}

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: 300;
}

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

.img-caption {
    text-align: center;
    color: #57606f;
    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: #57606f;
    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: #f1f2f6;
    border-left: 1px solid #ccc;
    margin: 0;
}

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

.image {
  display: block;
  width: 100%;
  height: 20rem;
  object-fit: cover;
  box-shadow: 0px 0px 0.5rem #f1f2f6;
  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: radial-gradient(circle at top left, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.82));
  backdrop-filter: blur(16px) saturate(175%);
  -webkit-backdrop-filter: blur(16px) saturate(175%);
  border: 1px solid rgba(148, 163, 184, 0.32);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.overlay::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(2, 6, 23, 0.18);
  pointer-events: none;
}

.overlay::before{
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0) 40%),
    radial-gradient(circle at 70% 65%, rgba(99, 102, 241, 0.16), rgba(99, 102, 241, 0) 46%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.0), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.0));
  opacity: 0.0;
  transform: translate3d(0,0,0) rotate(8deg);
  animation: overlaySheen 8s ease-in-out infinite;
  pointer-events: none;
}

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

.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(-4%, -2%, 0) rotate(8deg); }
  50%{ transform: translate3d(3%, 2%, 0) rotate(8deg); }
  100%{ transform: translate3d(-4%, -2%, 0) rotate(8deg); }
}

.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: #fff;
    text-shadow: 0 10px 22px rgba(2, 6, 23, 0.8);
}

.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;
    }

    /* .link-item {
        width: 80%; 
        padding-left: 1.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;
        /* margin: 0.7rem 0.25rem; */
    }
    
    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: #FFF;
    -webkit-font-smoothing: antialiased;
}
.footer-social-icons a {
    text-decoration: none;
    color: #fff;
}
.footer-social-icons p > .footer-social-icons a:hover{
    color: #d9d9d9;
    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: #fff;
}
ul.social-icons {
    margin-top: 10px;
}
.social-icons li {
    vertical-align: top;
    display: inline;
    height: 100px;
}
.social-icons a {
    color: #fff;
    text-decoration: none;
}
.fa-facebook {
    padding:10px 14px;
    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition: .5s;
    background-color: #322f30;
}
.fa-facebook:hover {
    background-color: #3d5b99;
}
.fa-youtube {
    padding:10px 14px;
    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition: .5s;
    background-color: #322f30;
}
.fa-youtube:hover {
    background-color: #e64a41;
}
.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: #322f30;
}
.fa-instagram:hover {
    background-color: #f00075;
}
.fa-linkedin-in:hover {
    background-color: #0073a4;
}
.fa-github:hover {
    background-color: #0366d6;
}
.fa-behance:hover {
    background-color: #0057ff;
}
.fa-dribbble:hover {
    background-color: #ea4c89;
}

/* 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; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}
  
/* 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;
}
  
/* 100% Image Width on Smaller Screens */
/* @media only screen and (max-width: 700px){
    .modal-content {
      width: 100%;
    }
} */


.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;
  /* background-color: rgba(0,0,0,0.9); */
  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: #C0AD60;
}
.string-highlight{
    color: rgba(253, 149, 90, 0.8);
}

#typewriter{
    font-size: 1.6em;
    margin: 0;
    font-family: "Courier New";
    height: 250px;
    display: inline-block;
}
#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;
    }
}