/* Homepage (shared styles: css/base.css) */

@font-face {
    font-family: 'para-thin';
    src: url("../../Fonts/Space/SpaceGrotesk-Light.woff2") format('woff2');
}

/* The "Amit Sharma" nav entry only appears once the hero is scrolled past */
.fixed-nav-bar li.amitsharma {
    opacity: 0;
    visibility: hidden;
    transition: opacity .70s ease-in-out;
}

.fixed-nav-bar li.amitsharma.fadein {
    visibility: visible;
    opacity: 1;
}

/* ---------- Hero ---------- */

#hero {
    position: relative;
    overflow: hidden;
    /* also clips the position:fixed hero items, so they never show over the cream sections */
    clip-path: inset(0);
    height: 100vh;
    width: 100vw;
    background-color: black;
}

.herowrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Fade in/out for every hero element. Timings are set per element below. */
.hero-item {
    opacity: 0;
    transition: opacity var(--out-time, .2s) ease-in-out var(--out-delay, 0s);
}

.hero-item.fadein {
    opacity: 1;
    transition: opacity var(--in-time, .7s) ease-in-out var(--in-delay, .7s);
}

#awwwardsbadge {
    width: 2vw;
    top: 50%;
    right: 0;
    position: fixed;
    transform: translate(0, -50%);
}

#digitaltext {
    --out-time: .3s;
    --out-delay: .3s;
    --in-time: .8s;
    --in-delay: .8s;
    position: relative;
    margin: 0;
    margin-top: -1vw;
    font-family: 'para-bold', serif;
    text-align: right;
    color: #f8f8f8;
    font-size: var(--fs-7vw);
}

#experiencetext,
#designertext {
    font-family: 'para-bold', monospace;
    font-weight: 400;
    color: #f8f8f8;
    float: left;
    font-size: var(--fs-7vw);
    line-height: 4.2vw;
    z-index: -1;
}

#experiencetext {
    --out-time: .3s;
    --out-delay: .2s;
    position: relative;
    margin-top: 0;
}

#designertext {
    --out-delay: .2s;
    --in-time: .9s;
    --in-delay: .9s;
    position: absolute;
    margin-top: 6vw;
}

#myname {
    font-family: 'para-thin', monospace;
    text-align: right;
    font-size: var(--fs-3_2vw);
    position: absolute;
    margin-left: 0.4vw;
    color: #CACACA;
    line-height: 2.7vw;
    margin-top: -7.1vw;
}

#sundecal {
    --in-time: 1s;
    --in-delay: 1s;
    position: absolute;
    width: 6vw;
    left: 0;
    margin: 0;
}

#madeindiadecal {
    --out-time: .1s;
    --out-delay: .1s;
    --in-time: 1s;
    --in-delay: 1s;
    right: 0;
    top: 0;
    margin-top: 12vw;
    margin-left: 32vw;
    position: absolute;
    width: 10vw;
    transform: rotate(20deg);
}

#scrolldecalbg,
#scrolldecalarrow {
    left: 0;
    bottom: 0;
    margin-left: 16vw;
    margin-bottom: -1vw;
    position: absolute;
    width: 3vw;
}

#scrolldecalarrow {
    --out-time: .1s;
    --out-delay: .1s;
}

#hero2 {
    position: absolute;
    overflow-x: hidden;
    background-image: linear-gradient(180deg, #F8F6F2E6, white);
    width: 100vw;
    height: 100vh;
}

#welcomemsggreet {
    font-family: 'title', sans-serif;
    text-align: left;
    color: #333333;
    font-size: var(--fs-6vw);
    line-height: 6vw;
    margin-left: 7vw;
    margin-right: 0;
    margin-top: 17vw;
    position: absolute;
    z-index: 10000;
}

#welcomemsg {
    position: absolute;
    font-family: 'para', monospace;
    color: #777777;
    font-size: var(--fs-1_1vw);
    line-height: 2vw;
    margin-left: 7vw;
    margin-right: 61vw;
    margin-top: 33.5vw;
    z-index: 100000;
}

.hl {
    color: #FF5C00;
}

#higif {
    position: absolute;
    right: 0;
    height: 36.4vw;
    margin-top: 10.56vw;
    margin-right: -50.4vw;
    transition: margin-right 1.2s ease-in-out, opacity 0.7s ease-in-out;
}

#higif.movein {
    margin-right: 0;
}

/* ---------- Projects ----------
   Each project is laid out in vw units. Per-project positions and colours are
   set as custom properties; the shared rules below consume them. */

.project--text-left {
    --text-x: 10vw;
}

.project--text-right {
    --text-x: 63vw;
}

.project--text-left .project__img {
    right: 0;
    margin-right: var(--img-x);
}

.project--text-right .project__img {
    left: 0;
    margin-left: var(--img-x);
}

.project__img {
    position: absolute;
    height: var(--img-h);
    margin-top: var(--img-y);
}

.project__name {
    position: absolute;
    font-size: var(--fs-3_5vw);
    font-family: 'title', sans-serif;
    margin-left: var(--text-x);
    margin-top: var(--name-y);
    color: #333333;
    line-height: var(--name-lh, 4vw);
}

.tags {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: var(--tags-y);
    margin-left: var(--text-x);
}

.tag {
    padding: 0.5vw 1vw;
    border-radius: 1vw;
    font-size: var(--fs-0_7vw);
    font-family: 'para', monospace;
    background-color: #F2F2F2;
    color: #777777;
}

.project__detail {
    position: absolute;
    font-size: var(--fs-1vw);
    line-height: 2vw;
    color: #777777;
    font-family: 'para', monospace;
    margin-left: var(--text-x);
    margin-right: var(--detail-mr);
    margin-top: var(--detail-y);
    z-index: 1;
}

.cta {
    position: absolute;
    display: flex;
    align-items: center;
    left: 0;
    margin-left: var(--text-x);
    margin-top: var(--btn-y);
    padding: 1.5vw 8vw 1vw 1vw;
    border: 0.14vw solid var(--c-border);
    border-radius: 0.9vw;
    font-family: 'para', monospace;
    font-size: var(--fs-1_12vw);
    font-weight: bold;
    color: var(--c-text);
    background-color: var(--c-bg);
    box-shadow: 0 0.4vw 0 0 var(--c-shadow);
}

.cta:hover {
    background-color: var(--c-border);
    color: #FFFFFF;
}

.cta:active {
    margin-top: calc(var(--btn-y) + 0.4vw);
    background-color: var(--c-border);
    box-shadow: none;
    color: #FFFFFF;
}

.cta__label,
.cta__arrow {
    margin: 2px;
    padding: 1px;
}

.cta__label {
    margin-right: 0;
    text-align: left;
}

.cta__arrow {
    padding-left: 1vw;
}

#dc {
    --img-x: 8vw; --img-h: 39vw; --img-y: 80vw;
    --name-y: 85vw; --tags-y: 93.5vw; --detail-y: 98.5vw; --detail-mr: 66vw; --btn-y: 111.5vw;
    --c-border: #0A66C2; --c-bg: #DAEDFF; --c-text: #0A66C2; --c-shadow: #004182;
}

#uberrent {
    --img-x: 8vw; --img-h: 43vw; --img-y: 141vw;
    --name-y: 149vw; --name-lh: normal; --tags-y: 153.5vw; --detail-y: 158.5vw; --detail-mr: 13vw; --btn-y: 171.5vw;
    --c-border: #212121; --c-bg: #E9E9E9; --c-text: #212121; --c-shadow: #000000;
}

#uberbus {
    --img-x: 8vw; --img-h: 39vw; --img-y: 206vw;
    --name-y: 213vw; --tags-y: 217.5vw; --detail-y: 222.5vw; --detail-mr: 66vw; --btn-y: 233.5vw;
    --c-border: #212121; --c-bg: #E9E9E9; --c-text: #000000; --c-shadow: #000000;
}

#mslayout {
    --img-x: 10vw; --img-h: 44vw; --img-y: 271vw;
    --name-y: 276vw; --name-lh: normal; --tags-y: 285vw; --detail-y: 290.5vw; --detail-mr: 13vw; --btn-y: 303.5vw;
    --c-border: #5357ee; --c-bg: #EAEAFF; --c-text: #3538A5; --c-shadow: #3e42d1;
}

#msautofill {
    --img-x: 10vw; --img-h: 43vw; --img-y: 346vw;
    --name-y: 354vw; --tags-y: 363vw; --detail-y: 368.5vw; --detail-mr: 66vw; --btn-y: 379.5vw;
    --c-border: #0078D4; --c-bg: #D9EBF9; --c-text: #0164AF; --c-shadow: #0164AF;
}

#msgp {
    --img-x: 1vw; --img-h: 55vw; --img-y: 414vw;
    --name-y: 426vw; --tags-y: 435vw; --detail-y: 440.5vw; --detail-mr: 14vw; --btn-y: 452vw;
    --c-border: #42CB12; --c-bg: #D9F5D0; --c-text: #37A411; --c-shadow: #37A411;
}

#moocast {
    --img-x: 0vw; --img-h: 52vw; --img-y: 485vw;
    --name-y: 497vw; --tags-y: 501.5vw; --detail-y: 507vw; --detail-mr: 65vw; --btn-y: 518.5vw;
    --c-border: #02DBB6; --c-bg: #D9FAF4; --c-text: #05A98D; --c-shadow: #05A98D;
}

#mindtrip {
    --img-x: 7vw; --img-h: 45vw; --img-y: 559vw;
    --name-y: 570vw; --tags-y: 574.5vw; --detail-y: 579.5vw; --detail-mr: 13vw; --btn-y: 590.5vw;
    --c-border: #E4A400; --c-bg: #FBF2D9; --c-text: #C18C02; --c-shadow: #C18C02;
}

#projalpha {
    --img-x: 5vw; --img-h: 50vw; --img-y: 626vw;
    --name-y: 635vw; --tags-y: 639.5vw; --detail-y: 644.5vw; --detail-mr: 67vw; --btn-y: 655vw;
    --c-border: #F36717; --c-bg: #FDE8DC; --c-text: #CA5310; --c-shadow: #CA5310;
}

/* ---------- Footer ---------- */

.site-footer {
    position: absolute;
    width: 100%;
    background-color: black;
    height: 35vw;
    margin-top: 705vw;
}

#footer-grain {
    position: absolute !important; /* grained.js sets an inline position:relative */
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.site-footer p {
    position: absolute;
    color: #FFFFFF;
    transform: rotate(-2deg);
}

#creativecommons {
    position: absolute;
    margin-left: 44.5vw;
    width: 10vw;
    padding-bottom: 10vw;
    margin-top: -5.5vw;
    transform: rotate(5deg);
}

#upnexttext {
    font-size: var(--fs-1vw);
    font-family: 'para', monospace;
    white-space: pre;
    line-height: 2.2vw;
    margin-left: 38vw;
    margin-right: 24vw;
    margin-top: 10.5vw;
}

#upnexttext .icon {
    font-family: 'fa';
}

#upnexttitle {
    font-size: var(--fs-6vw);
    text-align: center;
    width: 100%;
    font-family: 'title', monospace;
    white-space: pre;
    line-height: 6vw;
    margin-left: auto;
    margin-right: auto;
    margin-top: 12vw;
}

#comingsoontext {
    font-size: var(--fs-1vw);
    right: 0;
    margin-right: 38vw;
    font-family: 'para', monospace;
    margin-top: 24vw;
}

/* ---------- Mobile: single-column flow layout ---------- */

@media (max-width: 820px) {
    #hero {
        height: 100vh;
        height: 100svh;
    }

    .herowrapper {
        transform: translate(-50%, -50%) scale(var(--hero-scale, 1.7));
    }

    #awwwardsbadge {
        width: 24px;
    }

    #hero2 {
        position: relative;
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 24vw 7vw 10vw;
        box-sizing: border-box;
    }

    #welcomemsggreet,
    #welcomemsg,
    #higif {
        position: static;
        margin: 0;
    }

    #welcomemsggreet {
        font-size: 15vw;
        line-height: 15vw;
    }

    #welcomemsg {
        margin-top: 8vw;
        font-size: clamp(14px, 4vw, 20px);
        line-height: 1.8;
    }

    #higif {
        order: -1;
        align-self: flex-end;
        height: auto;
        width: 70vw;
        margin-bottom: 6vw;
        margin-right: -85vw;
    }

    #higif.movein {
        margin-right: -7vw;
    }

    .project,
    .site-footer {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .project {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 44vw 7vw 0;
    }

    /* Image is 80% of the window width, centred, with its natural height */
    .project .project__link,
    .project > .project__img {
        display: block;
        align-self: center;
        width: 80vw;
        max-width: none;
    }

    .project .project__img {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        margin: 0;
    }

    .project > .project__img {
        width: 80vw;
    }

    .project .project__name,
    .project .tags,
    .project .project__detail,
    .project .cta {
        position: static;
        margin: 0;
    }

    .project .project__name {
        margin-top: 7vw;
        font-size: 9vw;
        line-height: 1.15;
        align-self: center;
        text-align: center;
    }

    .project .tags {
        margin-top: 4vw;
        gap: 8px;
        align-self: center;
        justify-content: center;
    }

    .tag {
        margin: 0;
        padding: 0.7em 1.4em;
        border-radius: 1.4em;
        font-size: clamp(11px, 3.2vw, 14px);
    }

    .project .project__detail {
        margin-top: 5vw;
        font-size: clamp(14px, 4vw, 19px);
        line-height: 1.8;
    }

    .project .cta {
        align-self: stretch;
        justify-content: flex-start;
        margin-top: 7vw;
        padding: 1.34em 1.4em 0.9em 0.9em;
        border-width: 0.125em;
        border-radius: 0.8em;
        font-size: clamp(14px, 4vw, 18px);
        box-shadow: 0 0.36em 0 0 var(--c-shadow);
    }

    .project .cta__arrow {
        padding-left: 0.9em;
    }

    .project .cta:active {
        margin-top: 7vw;
        transform: translateY(0.36em);
        box-shadow: none;
    }

    .site-footer {
        position: relative;
        display: grid;
        grid-template-columns: max-content;
        justify-content: center;
        height: auto;
        margin-top: 44vw;
        padding: 20vw 7vw 16vw;
        box-sizing: border-box;
        text-align: center;
    }

    #creativecommons,
    #upnexttext,
    #upnexttitle,
    #comingsoontext {
        position: static;
        margin: 0;
        padding: 0;
        width: auto;
    }

    #creativecommons {
        justify-self: center;
        width: 24vw;
        max-width: 140px;
        margin-top: -32vw;
        margin-bottom: 14vw;
    }

    #upnexttext {
        font-size: clamp(12px, 3.4vw, 16px);
        line-height: 2.2;
        justify-self: start;
    }

    #upnexttitle {
        font-size: 14vw;
        line-height: 14vw;
        margin-top: -2vw;
    }

    #comingsoontext {
        justify-self: end;
        margin-top: 3vw;
        font-size: clamp(12px, 3.4vw, 16px);
    }
}
