/* Nishant Rajora | portfolio system */
:root {
    --ink: #101827;
    --paper: #f3f0e8;
    --surface: #fbfaf6;
    --surface-dark: #182333;
    --muted: #687180;
    --line: rgba(16, 24, 39, .14);
    --line-light: rgba(255, 255, 255, .14);
    --lime: #c7f36b;
    --coral: #f47f68;
    --display: 'Fraunces', Georgia, serif;
    --body: 'Inter', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .38;
    background-image: radial-gradient(rgba(16, 24, 39, .16) .7px, transparent .7px);
    background-size: 7px 7px;
    mix-blend-mode: multiply;
    z-index: -1;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 4px;
}

#grid-canvas {
    position: fixed;
    inset: 0;
    z-index: -2;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    opacity: .8;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6vw;
    background: rgba(243, 240, 232, .78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: background .35s, border-color .35s, height .35s;
}

.navbar.scrolled {
    height: 66px;
    background: rgba(243, 240, 232, .94);
    border-color: var(--line);
}

.navbar::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: var(--scroll-progress, 0%);
    background: var(--coral);
    transition: width .1s linear;
}

.nav-logo,
.footer-logo {
    font-family: var(--display);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -.02em;
}

.nav-logo {
    font-size: 19px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 34px;
}

.nav-links a,
.nav-status {
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
}

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -7px;
    height: 2px;
    width: 0;
    background: var(--coral);
    transition: width .3s var(--ease);
}

.nav-links a:hover,
.nav-links a[style*="signal"] {
    color: var(--ink);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 9px;
}

.status-dot,
.log-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 4px rgba(244, 127, 104, .14);
}

.status-dot {
    animation: pulse-dot 2.2s ease-in-out infinite;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 7px;
}

.hamburger span {
    display: block;
    width: 23px;
    height: 2px;
    background: var(--ink);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 22px 6%;
    flex-direction: column;
    gap: 16px;
    background: var(--surface-dark);
    color: white;
    box-shadow: 0 18px 30px rgba(16, 24, 39, .18);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, .7);
}

.hero {
    min-height: 100svh;
    padding: 76px 6vw 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '01';
    position: absolute;
    top: 21%;
    right: 7%;
    color: rgba(16, 24, 39, .07);
    font: 900 clamp(110px, 22vw, 320px)/.8 var(--display);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8vw;
    padding-top: 30px;
}

.hero-left {
    flex: 1.1;
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.kicker,
.project-tag,
.section-index,
.datasheet-head,
.skill-group-label,
.ci-label {
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.kicker {
    color: var(--coral);
    font-size: 11px;
    margin-bottom: 24px;
}

.kicker::before {
    content: '/// ';
    color: var(--ink);
}

.hero-name {
    font: 600 clamp(44px, 7vw, 88px)/.96 var(--display);
    letter-spacing: -.045em;
    max-width: 760px;
    margin-bottom: 28px;
}

.hero-name-accent {
    color: var(--coral);
    font-style: italic;
    font-weight: 500;
}

.hero-desc {
    max-width: 510px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 34px;
}

.hero-cta {
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
    margin-bottom: 52px;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 22px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
}

.btn-primary::after {
    content: '↗';
    margin-left: 16px;
    color: var(--lime);
    font-size: 17px;
}

.btn-primary:hover {
    background: var(--coral);
    transform: translateY(-4px);
}

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: var(--ink);
    background: var(--lime);
    transform: translateY(-4px);
}

.hero-stats {
    display: flex;
    gap: 42px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    color: var(--muted);
    font-size: 11px;
}

.stat-num {
    color: var(--ink);
    font: 600 34px/.95 var(--display);
}

.stat-text {
    color: var(--ink);
    font: 600 16px/1 var(--display);
}

.hero-right {
    flex: .82;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.profile-card {
    position: relative;
    max-width: 440px;
    padding: 22px 25px 24px;
    overflow: hidden;
    background: var(--coral);
    color: var(--ink);
    box-shadow: 18px 18px 0 var(--ink);
    transform: rotate(-2deg);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.profile-card:hover {
    transform: rotate(0) translateY(-8px);
    box-shadow: 24px 24px 0 var(--lime);
}

.profile-card-topline {
    display: flex;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(16, 24, 39, .24);
    font: 10px var(--mono);
    letter-spacing: .08em;
}

.datasheet {
    position: relative;
    max-width: 440px;
    min-height: 420px;
    padding: 25px 25px 0;
    overflow: hidden;
    color: white;
    background: var(--surface-dark);
    box-shadow: 18px 18px 0 var(--lime);
    transform: rotate(2deg);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.datasheet:hover {
    transform: rotate(0) translateY(-8px);
    box-shadow: 24px 24px 0 var(--coral);
}

.datasheet::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .26;
    background-image: linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

.datasheet-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--lime);
    z-index: 1;
}

.dc-tl {
    top: 12px;
    left: 12px;
    border-right: 0;
    border-bottom: 0;
}

.dc-tr {
    top: 12px;
    right: 12px;
    border-left: 0;
    border-bottom: 0;
}

.dc-bl {
    bottom: 12px;
    left: 12px;
    border-right: 0;
    border-top: 0;
}

.dc-br {
    bottom: 12px;
    right: 12px;
    border-left: 0;
    border-top: 0;
}

.datasheet-head {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line-light);
    font-size: 10px;
    color: rgba(255, 255, 255, .58);
}

.datasheet-rev {
    color: var(--lime);
}

.profile-visual {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    animation: profile-float 5s ease-in-out infinite;
}

.profile-visual img {
    width: 168px;
    height: 168px;
    flex: 0 0 168px;
    object-fit: cover;
    border: 3px solid var(--ink);
    border-radius: 8px;
    filter: saturate(.9) contrast(1.05);
}

.profile-label {
    color: rgba(16, 24, 39, .68);
    font: 10px var(--mono);
    letter-spacing: .08em;
}

.profile-card-caption {
    max-width: 24ch;
    font: 600 19px/1.15 var(--display);
}

.datasheet-stats {
    position: relative;
    padding: 8px 0 30px;
}

.datasheet-stats::before {
    content: 'ACTIVITY / 2025';
    display: block;
    color: var(--lime);
    font: 10px var(--mono);
    letter-spacing: .08em;
    margin-bottom: 14px;
}

.datasheet-stats img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    border: 1px solid var(--line-light);
    filter: saturate(.8) contrast(1.05);
}

.hero-scroll-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font: 10px var(--mono);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.scroll-line {
    width: 52px;
    height: 1px;
    background: var(--coral);
}

.section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 130px 6vw;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 58px;
    border-bottom: 1px solid var(--line);
}

.section-index {
    color: var(--coral);
    font-size: 11px;
}

.section-title {
    font: 600 clamp(32px, 4vw, 55px)/1 var(--display);
    letter-spacing: -.035em;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 470px;
    gap: 9vw;
}

.about-text p {
    max-width: 64ch;
    margin-bottom: 23px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

.about-text strong {
    color: var(--ink);
}

.hl {
    color: var(--coral);
    font-style: italic;
}

.fact-list {
    list-style: none;
    margin-top: 32px;
    border-top: 1px solid var(--line);
}

.fact-list li {
    display: flex;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 14px;
}

.fact-list li span {
    flex: 0 0 130px;
    color: var(--muted);
    font: 10px var(--mono);
    text-transform: uppercase;
    padding-top: 4px;
}

.domains-label {
    color: var(--muted);
    font: 11px var(--mono);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 15px;
}

.domains-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.domain-tile {
    min-height: 165px;
    padding: 22px 20px;
    background: var(--surface);
    transition: background .35s, transform .35s var(--ease);
}

.domain-tile:hover {
    background: var(--lime);
    transform: translateY(-5px);
    position: relative;
    z-index: 1;
}

.domain-mark {
    color: var(--coral);
    font: 11px var(--mono);
}

.domain-tile h3 {
    margin: 24px 0 6px;
    font: 600 18px var(--display);
}

.domain-tile p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.project-card {
    min-height: 300px;
    padding: 29px 27px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: var(--surface);
    transition: background .35s, transform .35s var(--ease);
}

.project-card::after {
    content: '↗';
    position: absolute;
    top: 24px;
    right: 25px;
    color: var(--line);
    font-size: 22px;
    transition: color .3s, transform .3s var(--ease);
}

.project-card:hover {
    background: var(--ink);
    color: white;
    transform: translateY(-7px);
    z-index: 2;
}

.project-card:hover::after {
    color: var(--lime);
    transform: translate(3px, -3px);
}

.project-tag {
    color: var(--coral);
    font-size: 10px;
    margin-bottom: 24px;
}

.project-card h3 {
    max-width: 90%;
    margin-bottom: 13px;
    font: 600 20px/1.25 var(--display);
}

.project-card h3 a {
    text-decoration: none;
}

.project-card h3 a:hover {
    color: var(--lime);
}

.project-card p {
    flex: 1;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.project-card:hover p {
    color: rgba(255, 255, 255, .62);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-stack span,
.skill-tag {
    border: 1px solid var(--line);
    padding: 4px 8px;
    color: var(--muted);
    font: 10px var(--mono);
}

.project-card:hover .tech-stack span {
    border-color: var(--line-light);
    color: rgba(255, 255, 255, .7);
}

.skills-categories {
    display: flex;
    flex-direction: column;
}

.skill-group {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: baseline;
    gap: 20px;
    padding: 21px 0;
    border-bottom: 1px solid var(--line);
}

.skill-group-label {
    color: var(--muted);
    font-size: 10px;
}

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

.skill-tag {
    padding: 7px 12px;
    color: var(--ink);
    background: var(--surface);
    transition: background .25s, border-color .25s, transform .25s var(--ease);
}

.skill-tag:hover {
    border-color: var(--coral);
    background: var(--lime);
    transform: translateY(-3px);
}

.contact-wrapper {
    max-width: 850px;
}

.contact-card {
    padding: 42px;
    background: var(--surface-dark);
    color: white;
    box-shadow: 16px 16px 0 var(--coral);
}

.contact-intro {
    max-width: 50ch;
    margin-bottom: 31px;
    color: rgba(255, 255, 255, .65);
    line-height: 1.75;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--line-light);
    border: 1px solid var(--line-light);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    background: var(--surface-dark);
    text-decoration: none;
    transition: background .3s, color .3s;
}

.contact-item:hover {
    background: var(--lime);
    color: var(--ink);
}

.ci-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-light);
    color: var(--lime);
}

.contact-item:hover .ci-icon {
    border-color: var(--ink);
    color: var(--ink);
}

.ci-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.ci-label {
    color: rgba(255, 255, 255, .48);
    font-size: 9px;
}

.contact-item:hover .ci-label {
    color: rgba(16, 24, 39, .62);
}

.ci-value {
    font-size: 14px;
}

.ci-arrow {
    color: var(--lime);
    transition: transform .3s;
}

.contact-item:hover .ci-arrow {
    color: var(--ink);
    transform: translateX(5px);
}

.contact-item-social {
    align-items: flex-start;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 16px;
    margin-top: 8px;
}

.social-links a {
    color: white;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid var(--line-light);
}

.social-links a:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.footer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6vw 42px;
}

.footer-line {
    height: 1px;
    margin-bottom: 25px;
    background: var(--line);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--muted);
    font-size: 12px;
}

.footer-logo {
    color: var(--ink);
    font-size: 18px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.hero .reveal {
    opacity: 1;
    transform: translateY(0);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay {
    transition-delay: .18s;
}

.project-card:nth-child(3n+2) {
    transition-delay: .08s;
}

.project-card:nth-child(3n+3) {
    transition-delay: .16s;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

@keyframes profile-float {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-6px) rotate(1deg);
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 55px;
    }

    .about-visual {
        max-width: 540px;
    }
}

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        align-items: stretch;
        gap: 65px;
    }

    .hero-right {
        align-self: center;
        width: min(100%, 480px);
    }

    .nav-status {
        display: none;
    }
}

@media (max-width: 700px) {
    .navbar {
        padding: 0 5%;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        top: 76px;
        padding-inline: 5%;
    }

    .hero {
        padding: 92px 5% 42px;
    }

    .hero-name {
        font-size: clamp(43px, 14vw, 70px);
    }

    .hero::before {
        top: 14%;
        right: 4%;
        font-size: 150px;
    }

    .hero-stats {
        gap: 23px;
        flex-wrap: wrap;
    }

    .datasheet {
        box-shadow: 10px 10px 0 var(--lime);
    }

    .profile-visual img {
        width: 128px;
        height: 128px;
        flex-basis: 128px;
    }

    .section {
        padding: 88px 5%;
    }

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

    .domains-grid {
        grid-template-columns: 1fr;
    }

    .skill-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact-card {
        padding: 25px;
        box-shadow: 9px 9px 0 var(--coral);
    }

    .ci-value {
        overflow-wrap: anywhere;
    }

    .footer {
        padding-inline: 5%;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }
}