/* =========================================================
   ARNAB — EDITORIAL PORTFOLIO
   ========================================================= */

:root {
    --black: #050505;
    --black-soft: #0b0b0b;
    --white: #f4f1eb;
    --gray: #96928a;
    --gray-dark: #595650;
    --orange: #f5a400;
    --orange-light: #ffbd32;

    --font-display: "Bebas Neue", sans-serif;
    --font-body: "DM Sans", sans-serif;
    --font-script: "Playfair Display", serif;

    --container: 1320px;
    --transition: 0.4s cubic-bezier(.2,.8,.2,1);
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body.light-mode {
    --black: #eeeae2;
    --black-soft: #e5e0d6;
    --white: #111111;
    --gray: #68645d;
    --gray-dark: #99948b;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   PRELOADER
   ========================================================= */

.preloader {
    position: fixed;
    inset: 0;

    background: #050505;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-family: var(--font-display);
    font-size: 70px;
    letter-spacing: 4px;
}

.loader-text span {
    color: var(--orange);
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    padding: 25px 0;

    transition:
        background var(--transition),
        padding var(--transition);
}

.site-header.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    padding: 15px 0;
}

.nav {
    width: min(90%, var(--container));
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 1px;
}

.logo span {
    color: var(--orange);
}

.nav-links {
    display: flex;
    gap: 90px;
}

.nav-links a {
    position: relative;

    font-size: 12px;
    text-transform: uppercase;

    color: var(--white);

    transition: color var(--transition);
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: var(--orange);

    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--orange);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    position: relative;

    width: 38px;
    height: 20px;

    border: none;
    border-radius: 20px;

    background: var(--orange);

    cursor: pointer;
}

.theme-toggle span {
    position: absolute;

    width: 13px;
    height: 13px;

    top: 3.5px;
    left: 4px;

    border-radius: 50%;

    background: #050505;

    transition: transform var(--transition);
}

body.light-mode .theme-toggle span {
    transform: translateX(17px);
}

.menu-toggle {
    display: none;

    border: none;
    background: none;

    color: var(--white);

    font-size: 24px;

    cursor: pointer;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.hero-background-text {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    font-family: var(--font-display);

    font-size: min(32vw, 500px);

    line-height: .7;

    color: rgba(255,255,255,.025);

    white-space: nowrap;

    pointer-events: none;
}

.hero-image-wrapper {
    position: absolute;

    width: min(420px, 45vw);
    height: 620px;

    left: 50%;
    top: 52%;

    transform: translate(-50%, -50%);

    overflow: hidden;

    z-index: 1;
}

.hero-image-glow {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle,
            rgba(245,164,0,.18),
            transparent 60%
        );

    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        grayscale(100%)
        contrast(1.15)
        brightness(.7);

    opacity: .72;

    mix-blend-mode: screen;

    transition:
        transform 1.5s ease,
        opacity var(--transition);
}

.hero:hover .hero-image {
    transform: scale(1.04);
    opacity: .82;
}

.hero-content {
    position: relative;

    width: 90%;
    max-width: var(--container);

    min-height: 700px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    z-index: 2;
}

.hero-topline {
    position: absolute;

    top: 130px;
    left: 0;
    right: 0;

    display: flex;
    justify-content: space-between;

    font-size: 10px;
    text-transform: uppercase;

    letter-spacing: 1px;

    color: var(--gray);
}

.hero-title {
    position: relative;

    text-align: center;

    margin-top: 70px;
}

.script-title {
    position: absolute;

    left: 50%;
    top: -60px;

    transform: translateX(-50%) rotate(-8deg);

    font-family: var(--font-script);

    font-size: clamp(50px, 7vw, 100px);

    font-style: italic;

    color: var(--orange);

    white-space: nowrap;

    z-index: 3;
}

.hero-title h1 {
    position: relative;

    font-family: var(--font-display);

    font-size: clamp(130px, 20vw, 310px);

    line-height: .78;

    letter-spacing: -5px;

    color: var(--white);

    white-space: nowrap;

    z-index: 2;
}

.hero-bottom {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 80px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.hero-bottom p {
    width: 280px;

    color: var(--gray);

    font-size: 12px;

    line-height: 1.7;
}

.hero-presented {
    text-align: right;

    font-size: 10px;

    color: var(--gray);
}

.hero-presented strong {
    display: block;

    margin-top: 5px;

    color: var(--white);

    font-weight: 500;
}

.hero-scroll {
    position: absolute;

    bottom: 25px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 15px;

    font-size: 9px;

    color: var(--gray);

    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 50px;
    height: 1px;

    background: var(--gray);
}


/* =========================================================
   MARQUEE
   ========================================================= */

.marquee {
    overflow: hidden;

    border-top: 1px solid #1d1d1d;
    border-bottom: 1px solid #1d1d1d;

    padding: 22px 0;
}

.marquee-track {
    width: max-content;

    display: flex;
    align-items: center;

    gap: 35px;

    animation: marquee 30s linear infinite;
}

.marquee span {
    font-family: var(--font-display);

    font-size: 35px;

    letter-spacing: 2px;
}

.marquee i {
    color: var(--orange);
    font-style: normal;
}

@keyframes marquee {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


/* =========================================================
   GLOBAL SECTIONS
   ========================================================= */

.section {
    width: min(90%, var(--container));

    margin: auto;

    padding: 150px 0;
}

.section-label {
    color: var(--orange);

    font-size: 10px;

    letter-spacing: 2px;

    margin-bottom: 70px;
}

.small-script {
    display: block;

    font-family: var(--font-script);

    font-size: 28px;

    color: var(--orange);

    font-style: italic;

    margin-bottom: 20px;
}

.big-section-title {
    font-family: var(--font-display);

    font-size: clamp(100px, 15vw, 220px);

    line-height: .78;

    letter-spacing: -3px;
}

.big-section-title span {
    color: var(--orange);
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;
}

.section-title-block h2 {
    font-family: var(--font-display);

    font-size: clamp(90px, 11vw, 170px);

    line-height: .78;
}

.section-title-block h2 span {
    color: var(--orange);
}

.about-text {
    padding-top: 30px;
}

.large-text {
    font-size: 24px;

    line-height: 1.5;

    margin-bottom: 30px;
}

.about-text > p:not(.large-text) {
    color: var(--gray);

    font-size: 14px;

    line-height: 1.8;

    max-width: 550px;
}

.about-facts {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    margin-top: 60px;

    border-top: 1px solid #252525;
}

.about-facts div {
    padding: 25px 0;

    border-bottom: 1px solid #252525;
}

.about-facts strong {
    display: block;

    font-family: var(--font-display);

    font-size: 55px;

    color: var(--orange);

    line-height: 1;
}

.about-facts span {
    font-size: 10px;

    color: var(--gray);

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* =========================================================
   SKILLS
   ========================================================= */

.skills-section {
    border-top: 1px solid #1d1d1d;
}

.skills-list {
    margin-top: 100px;
}

.skill-row {
    display: grid;

    grid-template-columns: 80px 1fr 1fr;

    align-items: center;

    padding: 35px 0;

    border-top: 1px solid #252525;

    transition: padding var(--transition);
}

.skill-row:last-child {
    border-bottom: 1px solid #252525;
}

.skill-row:hover {
    padding-left: 20px;
    padding-right: 20px;
}

.skill-number {
    color: var(--orange);

    font-size: 11px;
}

.skill-row h3 {
    font-family: var(--font-display);

    font-size: 50px;

    font-weight: 400;

    letter-spacing: 1px;
}

.skill-row p {
    color: var(--gray);

    font-size: 12px;
}


/* =========================================================
   EXPERIENCE
   ========================================================= */

.experience-section {
    background: #090909;
    max-width: none;
    width: 100%;

    padding-left: 5%;
    padding-right: 5%;
}

.experience-list {
    max-width: 1100px;

    margin: 100px auto 0;
}

.experience-item {
    display: grid;

    grid-template-columns: 180px 1fr;

    gap: 70px;

    padding: 45px 0;

    border-top: 1px solid #242424;
}

.experience-item:last-child {
    border-bottom: 1px solid #242424;
}

.experience-year {
    color: var(--orange);

    font-size: 11px;

    letter-spacing: 1px;
}

.experience-item h3 {
    font-family: var(--font-display);

    font-size: 60px;

    font-weight: 400;

    line-height: .9;
}

.experience-item h4 {
    margin: 10px 0 15px;

    color: var(--gray);

    font-size: 13px;
}

.experience-item p {
    color: var(--gray-dark);

    max-width: 600px;

    font-size: 12px;
}


/* =========================================================
   PROJECTS
   ========================================================= */

.work-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 50px;
}

.work-header p {
    max-width: 260px;

    color: var(--gray);

    font-size: 12px;

    line-height: 1.8;
}

.project-list {
    margin-top: 100px;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1px;

    background: #242424;
}

.project-card {
    min-height: 530px;

    padding: 40px;

    background: var(--black);

    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    overflow: hidden;

    transition: background var(--transition);
}

.project-card::before {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    right: -100px;
    bottom: -100px;

    border-radius: 50%;

    background: var(--orange);

    opacity: 0;

    transition: all .7s ease;
}

.project-card:hover {
    background: #0d0d0d;
}

.project-card:hover::before {
    opacity: .08;

    width: 450px;
    height: 450px;
}

.project-top {
    display: flex;

    justify-content: space-between;

    color: var(--gray);

    font-size: 10px;

    letter-spacing: 1px;
}

.project-top span:first-child {
    color: var(--orange);
}

.project-card h3 {
    position: relative;

    font-family: var(--font-display);

    font-size: clamp(70px, 8vw, 120px);

    line-height: .78;

    font-weight: 400;

    margin-top: auto;

    margin-bottom: 30px;
}

.project-card p {
    color: var(--gray);

    max-width: 400px;

    font-size: 12px;

    line-height: 1.7;

    margin-bottom: 30px;
}

.project-arrow {
    position: relative;

    width: fit-content;

    color: var(--orange);

    font-size: 11px;

    letter-spacing: 1px;

    transition: transform var(--transition);
}

.project-arrow:hover {
    transform: translateX(10px);
}


/* =========================================================
   RESEARCH
   ========================================================= */

.research-section {
    border-top: 1px solid #1d1d1d;
}

.research-intro {
    max-width: 600px;

    margin: 70px 0;

    margin-left: auto;
}

.research-intro p {
    color: var(--gray);

    font-size: 15px;

    line-height: 1.8;
}

.research-list {
    border-top: 1px solid #252525;
}

.research-card {
    display: grid;

    grid-template-columns: 80px 1fr 50px;

    gap: 30px;

    align-items: center;

    padding: 40px 0;

    border-bottom: 1px solid #252525;

    transition: padding var(--transition);
}

.research-card:hover {
    padding-left: 20px;
    padding-right: 20px;
}

.research-number {
    color: var(--orange);

    font-size: 11px;
}

.research-meta {
    display: block;

    color: var(--orange);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    margin-bottom: 12px;
}

.research-card h3 {
    font-family: var(--font-display);

    font-size: clamp(30px, 4vw, 55px);

    font-weight: 400;

    line-height: .95;

    max-width: 950px;
}

.research-arrow {
    color: var(--orange);

    font-size: 25px;
}


/* =========================================================
   ACHIEVEMENTS
   ========================================================= */

.achievements-section {
    background: #090909;

    max-width: none;

    width: 100%;

    padding-left: 5%;
    padding-right: 5%;
}

.achievement-layout {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;
}

.achievement-list {
    border-top: 1px solid #242424;
}

.achievement-item {
    display: grid;

    grid-template-columns: 50px 1fr;

    gap: 20px;

    padding: 28px 0;

    border-bottom: 1px solid #242424;
}

.achievement-item > span {
    color: var(--orange);

    font-size: 10px;
}

.achievement-item h3 {
    font-family: var(--font-display);

    font-size: 45px;

    font-weight: 400;

    line-height: .9;

    margin-bottom: 10px;
}

.achievement-item p {
    color: var(--gray);

    font-size: 11px;
}


/* =========================================================
   EDUCATION
   ========================================================= */

.education-list {
    max-width: 1050px;

    margin: 100px auto 0;
}

.education-item {
    display: grid;

    grid-template-columns: 180px 1fr;

    gap: 60px;

    padding: 40px 0;

    border-top: 1px solid #252525;
}

.education-item:last-child {
    border-bottom: 1px solid #252525;
}

.education-year {
    color: var(--orange);

    font-size: 11px;
}

.education-item h3 {
    font-family: var(--font-display);

    font-size: 55px;

    line-height: .9;

    font-weight: 400;
}

.education-item p {
    margin: 12px 0;

    color: var(--gray);

    font-size: 13px;
}

.education-item strong {
    color: var(--orange);

    font-size: 11px;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
    position: relative;

    min-height: 90vh;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    text-align: center;
}

.contact-bg-text {
    position: absolute;

    font-family: var(--font-display);

    font-size: 35vw;

    color: rgba(255,255,255,.025);

    line-height: .7;

    pointer-events: none;
}

.contact-content {
    position: relative;

    z-index: 2;
}

.contact-content h2 {
    font-family: var(--font-display);

    font-size: clamp(130px, 18vw, 270px);

    line-height: .75;

    font-weight: 400;

    margin-bottom: 50px;
}

.contact-content h2 span {
    color: var(--orange);
}

.contact-content p {
    max-width: 400px;

    margin: 0 auto 40px;

    color: var(--gray);

    font-size: 13px;
}

.contact-email {
    display: inline-flex;

    align-items: center;

    gap: 30px;

    padding-bottom: 12px;

    border-bottom: 1px solid var(--orange);

    color: var(--white);

    font-size: 16px;

    transition: color var(--transition);
}

.contact-email span {
    color: var(--orange);

    transition: transform var(--transition);
}

.contact-email:hover {
    color: var(--orange);
}

.contact-email:hover span {
    transform: translate(5px, -5px);
}

.contact-socials {
    display: flex;

    justify-content: center;

    gap: 40px;

    margin-top: 70px;
}

.contact-socials a {
    color: var(--gray);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;

    transition: color var(--transition);
}

.contact-socials a:hover {
    color: var(--orange);
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    align-items: center;

    padding: 25px 5%;

    border-top: 1px solid #202020;

    color: var(--gray);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.footer-center {
    text-align: center;
}

.footer-center span {
    color: var(--orange);
}

.footer-right {
    text-align: right;
}

.footer-right a {
    transition: color var(--transition);
}

.footer-right a:hover {
    color: var(--orange);
}


/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(50px);

    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(.2,.8,.2,1);
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .nav-links {
        gap: 30px;
    }

    .hero-image-wrapper {
        width: 330px;
        height: 530px;
    }

    .hero-title h1 {
        font-size: 18vw;
    }

    .about-grid,
    .achievement-layout {
        grid-template-columns: 1fr;

        gap: 70px;
    }

    .skill-row {
        grid-template-columns: 60px 1fr;
    }

    .skill-row p {
        grid-column: 2;
    }

    .project-list {
        grid-template-columns: 1fr;
    }

    .work-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .contact-content h2 {
        font-size: 24vw;
    }
}


@media (max-width: 700px) {

    .site-header {
        padding: 18px 0;
    }

    .nav-links {
        position: fixed;

        top: 70px;
        left: 5%;
        right: 5%;

        display: flex;

        flex-direction: column;

        gap: 0;

        padding: 20px;

        background: #0d0d0d;

        border: 1px solid #252525;

        opacity: 0;

        visibility: hidden;

        transform: translateY(-15px);

        transition: all var(--transition);
    }

    .nav-links.open {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }

    .nav-links a {
        padding: 15px 5px;

        border-bottom: 1px solid #222;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content {
        min-height: 650px;
    }

    .hero-topline {
        top: 100px;

        font-size: 8px;
    }

    .hero-topline span:last-child {
        display: none;
    }

    .hero-image-wrapper {
        width: 270px;

        height: 450px;
    }

    .hero-title {
        margin-top: 40px;
    }

    .script-title {
        top: -35px;

        font-size: 45px;
    }

    .hero-title h1 {
        font-size: 24vw;

        letter-spacing: -2px;
    }

    .hero-bottom {
        bottom: 70px;

        flex-direction: column;

        align-items: flex-start;

        gap: 25px;
    }

    .hero-presented {
        text-align: left;
    }

    .section {
        padding: 100px 0;
    }

    .section-label {
        margin-bottom: 50px;
    }

    .big-section-title {
        font-size: 24vw;
    }

    .section-title-block h2 {
        font-size: 25vw;
    }

    .large-text {
        font-size: 19px;
    }

    .skill-row {
        grid-template-columns: 40px 1fr;
    }

    .skill-row h3 {
        font-size: 38px;
    }

    .skill-row p {
        grid-column: 2;
    }

    .experience-item {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .experience-item h3 {
        font-size: 50px;
    }

    .research-card {
        grid-template-columns: 35px 1fr;
    }

    .research-arrow {
        display: none;
    }

    .research-card h3 {
        font-size: 34px;
    }

    .education-item {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .education-item h3 {
        font-size: 45px;
    }

    .achievement-item h3 {
        font-size: 38px;
    }

    .contact-email {
        font-size: 12px;
    }

    .contact-socials {
        gap: 20px;
    }

    .footer {
        grid-template-columns: 1fr;

        gap: 15px;

        text-align: center;
    }

    .footer-right {
        text-align: center;
    }
}


@media (max-width: 450px) {

    .hero-image-wrapper {
        width: 230px;
        height: 400px;
    }

    .hero-title h1 {
        font-size: 23vw;
    }

    .script-title {
        font-size: 38px;
    }

    .about-facts strong {
        font-size: 45px;
    }

    .project-card {
        min-height: 450px;

        padding: 25px;
    }

    .project-card h3 {
        font-size: 75px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: .01ms !important;

        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;

        transform: none;
    }
}