/*
Theme Name: Chandra Narayan Gupta
Theme URI: https://chandranarayangupta.com/
Author: Trendy Web Works
Author URI: https://trendywebworks.in/
Description: A responsive portfolio theme for Chandra Narayan Gupta.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chandranarayangupta
Tags: custom-menu, featured-images
*/

/* Custom CSS starts here */
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(assets/css/fonts/inter-400.ttf)
}

@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(assets/css/fonts/inter-500.ttf)
}

@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(assets/css/fonts/inter-600.ttf)
}

@font-face {
    font-family: 'Reenie Beanie';
    font-weight: 400;
    font-display: swap;
    src: url(assets/css/fonts/reenie-beanie.ttf)
}

:root {
    --bg: #000;
    --fg: #f9f9f7;
    --line: #252525;
    --ease: cubic-bezier(.22, 1, .36, 1)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: Inter, Arial, sans-serif;
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit;
    text-decoration: none
}

a:hover {
    color: inherit
}

button,
input {
    font: inherit
}

button {
    color: inherit
}

::selection {
    background: #6540f5;
    color: white
}

.site-header {
    height: 100px;
    padding: 0 4.3%;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 101;
    background: #000
}

.logo {
    font-size: 38px;
    font-weight: 600;
    letter-spacing: -2px;
    line-height: 1
}

.logo sup {
    font-size: 16px;
    vertical-align: top;
    position: relative;
    top: 5px;
    letter-spacing: 0
}

.menu-toggle {
    border: 0;
    background: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 5px;
    cursor: pointer
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 1px;
    background: #fff;
    transition: transform .4s, opacity .4s
}

.menu-toggle[aria-expanded=true] span:first-child {
    transform: translateY(6px) rotate(45deg)
}

.menu-toggle[aria-expanded=true] span:nth-child(2) {
    opacity: 0
}

.menu-toggle[aria-expanded=true] span:last-child {
    transform: translateY(-6px) rotate(-45deg)
}

.page-shell {
    width: 91.5%;
    max-width: 1800px;
    margin: auto
}

.eyebrow {
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0
}

.hero {
    text-align: center;
    padding: 107px 0 158px
}

.hero h1 {
    font-size: clamp(56px, 6.05vw, 116px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.055em;
    margin: 43px 0 0
}

.hero-description {
    max-width: 900px;
    margin: 22px auto 0;
    font-size: clamp(19px, 1.8vw, 28px);
    line-height: 1.4;
    color: var(--muted, #999)
}

.hero-experience {
    margin: 12px auto 0;
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.5;
    color: var(--muted, #999)
}

.hand {
    font-family: 'Reenie Beanie', cursive;
    font-size: 1.5em;
    line-height: .4;
    display: inline-block;
    font-weight: 400;
    letter-spacing: -.06em;
    margin-left: .07em;
    transform: rotate(-9deg)
}

.hero-line {
    display: block;
    overflow: hidden;
    padding-bottom: .14em
}

.hero-line>span {
    display: block;
    animation: rise 1.3s var(--ease) both
}

.hero-line:nth-child(2)>span {
    animation-delay: .15s
}

.intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 35px
}

.intro h2 {
    font-size: clamp(27px, 2.1vw, 40px);
    max-width: none;
    line-height: 1.18;
    letter-spacing: -.035em;
    font-weight: 500;
    margin: 0
}

.projects {
    padding: 0 10px
}

.project {
    position: relative;
    display: block;
    height: 29vw;
    max-height: 550px;
    min-height: 260px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 25px;
    isolation: isolate;
    transform: scale(var(--scale, 1));
    transition: box-shadow .5s
}

.project:nth-child(2) {
    width: 94%;
    margin-left: auto;
    margin-right: auto
}

.project:nth-child(3) {
    width: 90%;
    margin-left: auto;
    margin-right: auto
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease), filter .8s
}

.project:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .25), transparent 70%);
    z-index: 0
}

.project:hover img {
    transform: scale(1.045)
}

.project-label {
    position: absolute;
    bottom: 36px;
    left: 36px;
    z-index: 1
}

.project h3 {
    font-size: clamp(27px, 2.1vw, 40px);
    letter-spacing: -.04em;
    font-weight: 500;
    margin: 0
}

.project-category {
    display: block;
    font-size: 14px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: .4s;
    margin-bottom: 0
}

.project:hover .project-category,
.project:focus-visible .project-category {
    max-height: 30px;
    opacity: 1;
    margin-bottom: 8px
}

.project-arrow {
    position: absolute;
    right: 40px;
    bottom: 32px;
    font-size: 40px;
    z-index: 1;
    transform: translate(-15px, 15px);
    opacity: 0;
    transition: .4s
}

.project:hover .project-arrow {
    opacity: 1;
    transform: none
}

.about {
    padding: 150px 0 160px;
    position: relative;
    align-items: center
}

.about-copy h2 {
    font-size: clamp(34px, 2.8vw, 46px);
    line-height: 1.19;
    letter-spacing: -.05em;
    font-weight: 500;
    margin: 0 0 45px;
}

.dot {
    display: inline-block;
    width: .52em;
    height: .52em;
    border-radius: 50%;
    background: white;
    vertical-align: baseline;
    margin-left: .12em
}

.about-copy p {
    max-width: 560px;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 18px
}

.awards {
    list-style: none;
    padding: 0;
    font-size: 18px;
    line-height: 1.15;
    margin: 0
}

.portrait-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 0
}

.portrait {
    width: 85%;
    max-width: 454px;
    height: auto;
    filter: grayscale(1) brightness(.65) contrast(1.1);
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
    mask-image: linear-gradient(to bottom, #000 78%, transparent)
}

.services {
    padding-bottom: 0
}

.service {
    border-top: 1px solid var(--line);
    position: relative
}

.service:last-child {
    border-bottom: 1px solid var(--line)
}

.service-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 53px 0;
    position: relative;
    z-index: 2
}

.service h3 {
    font-size: clamp(40px, 3.45vw, 66px);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: 1.15;
    margin: 0 0 4px
}

.service p {
    font-size: 18px;
    margin: 0
}

.long-arrow {
    display: block;
    width: 130px;
    height: 50px;
    position: relative;
    margin-right: 20px;
    transition: transform .5s var(--ease)
}

.long-arrow:before {
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    background: white;
    top: 24px
}

.long-arrow:after {
    content: '';
    position: absolute;
    right: 3px;
    top: 8px;
    width: 34px;
    height: 34px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg)
}

.service:hover .long-arrow {
    transform: translateX(16px)
}

.service-image {
    position: absolute;
    width: 260px;
    height: 180px;
    object-fit: cover;
    left: 54%;
    top: 50%;
    border-radius: 12px;
    transform: translate(-50%, -45%) rotate(-8deg) scale(.85);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    transition: .5s var(--ease)
}

.service:hover .service-image {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-8deg) scale(1)
}

.contact {
    padding: 170px 0 180px;
    align-items: center;
    min-height: 600px
}

.contact-art {
    width: 80%;
    max-width: 468px;
    display: block;
    margin: auto;
    animation: float 6s ease-in-out infinite
}

.contact h2 {
    font-size: clamp(35px, 3.15vw, 60px);
    line-height: 1.23;
    letter-spacing: -.045em;
    font-weight: 500;
    margin: 0
}

.contact-description {
    max-width: 760px;
    margin: 24px 0 28px;
    color: var(--muted, #999);
    font-size: clamp(17px, 1.35vw, 22px);
    line-height: 1.6
}

.contact-email {
    margin: 0;
    font-size: clamp(16px, 1.2vw, 20px);
}

.contact-email a {
    position: relative;
}

.contact-email a:after {
    content: '';
    height: 2px;
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    background: white;
    transition: width .5s;
}

.contact-email a:hover:after {
    width: 100%;
}

.contact h2 a {
    position: relative
}

.contact h2 a:after {
    content: '';
    height: 2px;
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    background: white;
    transition: width .5s
}

.contact h2 a:hover:after {
    width: 100%
}

.contact .dot {
    margin-top: 14px
}

.footer {
    padding: 40px 0 50px;
    margin: 0 3%
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 55px
}

.footer-mail {
    font-size: 16px;
    text-transform: uppercase
}

.footer-mail span {
    font-size: 32px;
    line-height: 0;
    vertical-align: -2px;
    margin-right: 5px
}

.copyright {
    color: #727272;
    text-transform: uppercase;
    font-size: 11px;
    margin-top: 12px
}

.socials {
    display: flex;
    flex-wrap: wrap;
    max-width: 390px;
    gap: 5px
}

.socials a {
    border: 1px solid white;
    border-radius: 30px;
    padding: 3px 22px;
    font-size: 12px;
    line-height: 1;
    transition: .3s
}

.socials a:hover {
    background: white;
    color: black
}

.newsletter label {
    font-size: 27px;
    font-weight: 500;
    letter-spacing: -.04em;
    margin-bottom: 18px;
    display: block
}

.input-wrap {
    display: flex;
    gap: 8px
}

.newsletter input {
    color: white;
    background: transparent;
    border: 1px solid white;
    border-radius: 50px;
    padding: 18px 28px;
    width: 100%;
    min-width: 0;
    outline: none
}

.newsletter input:focus {
    box-shadow: 0 0 0 3px #ffffff30
}

.newsletter input::placeholder {
    color: white
}

.submit-arrow {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border: 1px solid white;
    border-radius: 50%;
    background: transparent;
    font-size: 32px;
    transition: .3s
}

.submit-arrow:hover {
    background: white;
    color: black
}

.form-message {
    font-size: 14px;
    margin-top: 12px;
    color: #bcbcbc;
    min-height: 20px
}

.back-top {
    position: fixed;
    right: 6%;
    bottom: 70px;
    width: 68px;
    height: 68px;
    border-radius: 45% 55% 48% 52%;
    border: 6px ridge #c1c8c8;
    background: radial-gradient(ellipse at 35% 20%, #fff, #dbe1e1 65%, #646b72);
    color: black;
    z-index: 50;
    font-size: 30px;
    opacity: 0;
    visibility: hidden;
    transition: .4s;
    box-shadow: 0 0 0 2px #52585c
}

.back-top.visible {
    opacity: 1;
    visibility: visible
}

.menu-panel {
    position: fixed;
    inset: 0;
    background: #090909;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 130px 9% 70px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: .5s var(--ease)
}

.menu-panel.open {
    visibility: visible;
    opacity: 1;
    transform: none
}

.menu-panel nav {
    display: flex;
    flex-direction: column
}

.menu-panel nav a {
    font-size: clamp(45px, 6vw, 100px);
    letter-spacing: -.055em;
    line-height: 1.2;
    transition: color .3s
}

.menu-panel nav a:hover {
    color: #8b77fd
}

.menu-info {
    margin-left: auto;
    align-self: flex-end;
    font-size: 16px
}

.menu-info a {
    display: block;
    margin-top: 15px
}

.menu-open {
    overflow: hidden
}

.reveal {
    opacity: 1;
    transform: none
}

.js-ready .reveal {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease)
}

.js-ready .reveal.in-view {
    opacity: 1;
    transform: none
}

.project-dialog {
    background: #080808;
    color: white;
    border: 1px solid #333;
    border-radius: 20px;
    width: min(1000px, 94vw);
    padding: 25px;
    max-height: 90vh
}

.project-dialog::backdrop {
    background: #000c;
    backdrop-filter: blur(10px)
}

.project-dialog img {
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
    border-radius: 12px
}

.project-dialog h2 {
    font-size: 36px;
    margin: 20px 0 8px
}

.dialog-close {
    position: absolute;
    right: 35px;
    top: 35px;
    border: 1px solid white;
    background: black;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    z-index: 2
}

.dialog-description {
    color: #aaa
}

.cursor-label {
    position: fixed;
    pointer-events: none;
    z-index: 80;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: white;
    color: black;
    display: grid;
    place-items: center;
    font-size: 13px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.7);
    transition: opacity .2s, transform .3s
}

.cursor-label.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1)
}

@keyframes rise {
    from {
        transform: translateY(120%)
    }

    to {
        transform: translateY(0)
    }
}

@keyframes float {
    50% {
        transform: translateY(-15px) rotate(3deg)
    }
}

@media(min-width:1600px) {
    .hero {
        padding-top: 135px;
        padding-bottom: 190px
    }

    .intro {
        margin-bottom: 65px
    }

    .site-header {
        height: 110px
    }
}

@media(max-width:1024px) {
    .site-header {
        height: 70px;
        padding: 0 7%
    }

    .logo {
        font-size: 31px
    }

    .hero {
        padding: 74px 0 115px
    }

    .hero h1 {
        margin-top: 32px;
        font-size: 56px
    }

    .intro {
        margin-bottom: 42px
    }

    .intro h2 {
        max-width: 410px
    }

    .project-label {
        left: 32px;
        bottom: 37px
    }

    .project {
        margin-bottom: 20px
    }

    .about {
        padding: 120px 0 165px
    }

    .about-copy h2 {
        margin-bottom: 42px
    }

    .service-link {
        padding: 43px 0
    }

    .long-arrow {
        width: 107px
    }

    .contact {
        padding: 170px 0 170px;
        min-height: 580px
    }

    .footer {
        margin: 0 3%;
        padding-top: 20px
    }

    .service-image {
        width: 220px;
        height: 150px
    }
}

@media(max-width:767px) {
    .page-shell {
        width: 89%
    }

    .site-header {
        height: 75px;
        padding: 0 5.5%
    }

    .hero {
        padding: 80px 0 95px
    }

    .hero h1 {
        font-size: clamp(39px, 8vw, 56px);
        letter-spacing: -.055em
    }

    .eyebrow {
        font-size: 12px
    }

    .intro {
        display: block;
        margin-bottom: 30px
    }

    .intro h2 {
        font-size: 26px;
        max-width: 360px
    }

    .intro .eyebrow {
        margin-top: 25px;
        text-align: right
    }

    .projects {
        padding: 0
    }

    .project {
        height: 62vw;
        min-height: 240px;
        border-radius: 17px
    }

    .project:nth-child(2),
    .project:nth-child(3) {
        width: 100%
    }

    .project-label {
        left: 22px;
        bottom: 25px
    }

    .project h3 {
        font-size: 26px
    }

    .project-category {
        max-height: 30px;
        opacity: 1;
        font-size: 12px;
        margin-bottom: 5px
    }

    .about {
        padding: 90px 0
    }

    .about-copy h2 {
        font-size: 35px;
        line-height: 1.18
    }

    .about-copy p,
    .awards {
        font-size: 16px
    }

    .portrait-wrap {
        justify-content: center;
        padding-top: 55px
    }

    .portrait {
        width: 75%;
        max-width: 350px
    }

    .service h3 {
        font-size: 30px;
        letter-spacing: -.05em
    }

    .service p {
        font-size: 14px
    }

    .service-link {
        padding: 32px 0
    }

    .long-arrow {
        width: 58px;
        margin-right: 5px
    }

    .long-arrow:after {
        width: 24px;
        height: 24px;
        top: 13px
    }

    .service-image {
        display: none
    }

    .contact {
        padding: 90px 0;
        min-height: 0;
        gap: 60px
    }

    .contact h2 {
        font-size: 32px
    }

    .contact-art {
        max-width: 290px;
        width: 80%
    }

    .footer {
        margin: 0;
        padding-bottom: 30px
    }

    .footer-top {
        display: block;
        margin-bottom: 40px
    }

    .socials {
        margin-top: 30px;
        max-width: 310px
    }

    .socials a {
        padding: 5px 18px
    }

    .newsletter label {
        font-size: 25px
    }

    .newsletter input {
        padding: 16px 20px
    }

    .submit-arrow {
        width: 57px;
        height: 57px
    }

    .back-top {
        width: 50px;
        height: 50px;
        right: 6%;
        bottom: 25px;
        font-size: 23px;
        border-width: 4px
    }

    .menu-panel {
        padding: 120px 8% 60px;
        align-items: flex-start;
        flex-direction: column
    }

    .menu-info {
        margin: 40px 0 0;
        align-self: flex-start
    }

    .cursor-label {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important
    }

    .js-ready .reveal {
        opacity: 1;
        transform: none
    }
}

/* WordPress navigation and content templates. */
.cng-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cng-nav .cng-menu-list,
.socials .cng-menu-list {
    display: flex;
    align-items: center;
    gap: 26px;
}

.cng-menu-panel .cng-menu-list {
    display: flex;
    flex-direction: column;
}

.cng-nav .current-menu-item>a::after {
    width: 100%;
}

.content-section {
    padding: 80px clamp(24px, 6vw, 100px);
    overflow-wrap: anywhere;
}

.content-section article {
    margin-bottom: 48px;
}

.content-section img {
    max-width: 100%;
    height: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 20px;
    clip-path: none;
    background: #fff;
    color: #000;
    z-index: 200;
}

@media (max-width: 1050px) {
    .cng-nav .cng-menu-list {
        gap: 18px;
    }
}

.socials .cng-menu-list {
    flex-wrap: wrap;
}

.projects .project {
    background: #151515
}

.portfolio-empty {
    padding: 40px 0;
    color: #aaa
}
