
/* =========================================
   DEBASIS JENA PORTFOLIO
   MAIN THEME VARIABLES
========================================= */

:root {
    color-scheme: dark;

    --bg: #0b0c12;
    --surface: rgba(255,255,255,.055);
    --surface-strong: rgba(255,255,255,.085);

    --text: #f5f4f8;
    --muted: #a5a4b2;
    --line: rgba(255,255,255,.12);

    --accent: #b49aff;
    --accent2: #69e0c1;

    --shadow: 0 24px 70px rgba(0,0,0,.25);

    --font: 'DM Sans', sans-serif;
    --display: 'Space Grotesk', sans-serif;
}


/* =========================================
   LIGHT THEME
========================================= */

body.light {
    color-scheme: light;

    --bg: #f5f4f9;
    --surface: rgba(255,255,255,.68);
    --surface-strong: rgba(255,255,255,.92);

    --text: #171722;
    --muted: #686879;
    --line: rgba(30,25,50,.13);

    --accent: #7555d9;
    --accent2: #168e77;

    --shadow: 0 24px 70px rgba(50,40,80,.10);
}


/* =========================================
   BASIC SETTINGS
========================================= */

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background .3s, color .3s;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

.section {
    padding: 110px 0;
    position: relative;
}


/* =========================================
   BACKGROUND EFFECTS
========================================= */

.ambient {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .14;
    pointer-events: none;
    z-index: -1;
}

.ambient-one {
    background: #8061ed;
    top: 8%;
    left: -230px;
}

.ambient-two {
    background: #25c8a2;
    right: -250px;
    top: 55%;
}


/* =========================================
   HEADER & NAVIGATION
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 700 14px var(--display);
    letter-spacing: .13em;
}

.brand-mark {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #a88bff, #58d9bf);
    color: #101018;
    font-size: 18px;
    letter-spacing: 0;
}

.brand-dot {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 27px;
    font-size: 13px;
    color: var(--muted);
}

.nav-links > a:hover,
.hero-socials a:hover,
.footer > a:last-child:hover {
    color: var(--text);
}

.nav-contact {
    color: var(--text) !important;
}

.nav-contact span {
    color: var(--accent);
}

.theme-toggle,
.menu-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    cursor: pointer;
    font-size: 19px;
}

.menu-toggle {
    display: none;
}


/* =========================================
   HERO SECTION
========================================= */

.hero {
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    padding-top: 85px;
    padding-bottom: 120px;
}

.eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .17em;
    color: var(--accent);
    margin: 0 0 22px;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #61dbad;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 12px #61dbad;
}

.hello {
    font-size: 19px;
    color: var(--muted);
    margin: 0;
}

.hero h1 {
    font: 700 clamp(58px, 8vw, 96px)/1.03 var(--display);
    letter-spacing: -.07em;
    margin: 7px 0 15px;
}

.gradient-text {
    background: linear-gradient(110deg, #c2aaff, #6ce3c6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.role-line {
    font: 500 clamp(19px, 2.5vw, 27px) var(--display);
    margin: 0 0 18px;
}

.role-line #typedText {
    color: var(--accent2);
}

.cursor {
    color: var(--accent);
    animation: blink .8s infinite;
}

.hero-description {
    max-width: 500px;
    color: var(--muted);
    font-size: 15px;
}


/* =========================================
   HERO BUTTONS
========================================= */

.hero-actions {
    display: flex;
    gap: 12px;
    margin: 30px 0 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 9px;
    padding: 13px 19px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--line);
    transition: transform .2s, box-shadow .2s;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background: linear-gradient(110deg, #a78aff, #66d9c0);
    color: #11121a;
    border: 0;
    box-shadow: 0 9px 30px #8b75d52b;
}

.button-ghost {
    background: var(--surface);
}


/* =========================================
   SOCIAL LINKS
========================================= */

.hero-socials {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: var(--muted);
}

.hero-socials > span {
    height: 3px;
    width: 3px;
    background: var(--muted);
    border-radius: 50%;
}


/* =========================================
   PROFILE CARD
========================================= */

.hero-visual {
    height: 440px;
    position: relative;
    display: grid;
    place-items: center;
}

.profile-card {
    width: min(330px, 82%);
    padding: 20px;
    border-radius: 22px;
    position: relative;
    z-index: 2;
    transform: rotate(3deg);
}

.glass {
    background: var(--surface);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.profile-top,
.profile-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8px;
    letter-spacing: .12em;
    color: var(--muted);
}

.live-pill {
    color: #61dbad;
}


/* =========================================
   PROFILE AVATAR
========================================= */

.avatar-art {
    height: 225px;
    margin: 17px 0 14px;
    border-radius: 15px;
    background: linear-gradient(145deg, #29223f, #162e36);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.avatar-glow {
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78aff, #57d8bc);
    filter: blur(3px);
    opacity: .8;
}

.avatar-initials {
    position: relative;
    font: 700 100px var(--display);
    color: #151522;
    text-shadow: 0 4px 25px #fff5;
}

.spark {
    position: absolute;
    color: #fff;
    font-size: 24px;
}

.spark-one {
    top: 26px;
    right: 30px;
}

.spark-two {
    bottom: 27px;
    left: 32px;
}

.profile-info h3 {
    font: 600 20px var(--display);
    margin: 0;
}

.profile-info p {
    font-size: 11px;
    color: var(--muted);
    margin: 2px 0 17px;
}

.profile-bottom {
    border-top: 1px solid var(--line);
    padding-top: 13px;
    font-size: 7px;
}


/* =========================================
   ORBIT & FLOATING EFFECTS
========================================= */

.orbit {
    position: absolute;
    border: 1px solid var(--line);
    border-radius: 50%;
    transform: rotate(-25deg);
}

.orbit-a {
    width: 430px;
    height: 300px;
}

.orbit-b {
    width: 370px;
    height: 420px;
    transform: rotate(55deg);
}

.float-chip {
    position: absolute;
    z-index: 3;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-strong);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow);
    font-size: 13px;
    color: var(--accent);
}

.float-chip span {
    font-size: 10px;
    color: var(--text);
    margin-left: 7px;
}

.chip-code {
    top: 65px;
    left: 0;
    animation: float 5s ease-in-out infinite;
}

.chip-idea {
    bottom: 63px;
    right: -4px;
    color: var(--accent2);
    animation: float 6s ease-in-out infinite reverse;
}

.scroll-cue {
    position: absolute;
    bottom: 35px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 9px;
    letter-spacing: .15em;
    color: var(--muted);
}

.scroll-cue span {
    height: 30px;
    width: 1px;
    background: var(--accent);
}


/* =========================================
   SECTION HEADINGS
========================================= */

.section-heading {
    margin-bottom: 42px;
}

.section-heading h2,
.contact-copy h2 {
    font: 600 clamp(38px, 5vw, 58px)/1.12 var(--display);
    letter-spacing: -.055em;
    margin: 0;
}

.section-subtitle {
    max-width: 370px;
    color: var(--muted);
    font-size: 13px;
    margin: 15px 0 0;
}


/* =========================================
   ABOUT SECTION
========================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 90px;
    align-items: center;
}

.about-text p {
    color: var(--muted);
    font-size: 14px;
}

.about-text .lead {
    font: 500 22px/1.5 var(--display);
    color: var(--text);
}

.text-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
}

.text-link span {
    margin-left: 8px;
}


/* ABOUT STATISTICS */

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.stat-card {
    padding: 23px;
    border-radius: 14px;
    min-height: 115px;
}

.stat-card strong {
    display: block;
    font: 600 29px var(--display);
    color: var(--accent2);
}

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


/* =========================================
   SKILLS SECTION
========================================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.skill-card {
    padding: 27px;
    border-radius: 15px;
    transition: transform .25s;
}

.skill-card:hover,
.project-card:hover {
    transform: translateY(-6px);
}

.skill-icon {
    width: 43px;
    height: 43px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 22px;
    background: var(--surface-strong);
    margin-bottom: 22px;
}

.orange {
    color: #ffb27e;
}

.purple {
    color: #c2aaff;
}

.green {
    color: #6ce3c6;
}

.skill-card h3 {
    font: 600 19px var(--display);
    margin: 0 0 8px;
}

.skill-card p {
    font-size: 12px;
    color: var(--muted);
    min-height: 58px;
}


/* SKILL TAGS */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 17px;
}

.tags span {
    font-size: 9px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--muted);
}


/* =========================================
   JOURNEY / TIMELINE SECTION
========================================= */

.timeline-controls,
.project-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 27px;
}

.filter-button {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 11px;
    cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
    background: var(--surface-strong);
    color: var(--text);
    border-color: var(--accent);
}

.timeline {
    border-left: 1px solid var(--line);
    margin-left: 9px;
    padding-left: 29px;
    display: grid;
    gap: 25px;
}

.timeline-item {
    position: relative;
    max-width: 700px;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -35px;
    top: 7px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 15%, transparent);
}

.timeline-item time {
    font-size: 10px;
    color: var(--accent2);
    letter-spacing: .1em;
}

.timeline-item h3 {
    font: 600 18px var(--display);
    margin: 4px 0;
}

.timeline-item p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}


/* =========================================
   PROJECT SECTION
========================================= */

.project-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
}

.project-heading .section-subtitle {
    margin: 0 0 5px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.project-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform .25s;
}

.project-card[hidden] {
    display: none;
}


/* PROJECT IMAGES / ART */

.project-art {
    height: 205px;
    position: relative;
    overflow: hidden;
    padding: 17px;
}

.project-art > span {
    font-size: 9px;
    letter-spacing: .15em;
    color: #ffffffa8;
}

.art-one {
    background: linear-gradient(135deg, #3e3260, #172d3c);
}

.art-two {
    background: linear-gradient(135deg, #244d52, #182b39);
}

.art-three {
    background: linear-gradient(135deg, #4a3153, #292d4a);
}


/* PROJECT 1 */

.mini-window {
    position: absolute;
    inset: 48px 38px 22px;
    background: #f5f1ff;
    border-radius: 9px;
    padding: 13px;
    color: #29223c;
    box-shadow: 0 15px 35px #0004;
    transform: rotate(-4deg);
}

.mini-window i {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a58bda;
    margin-right: 3px;
}

.mini-window b {
    display: block;
    font: 700 28px/1.05 var(--display);
    margin: 19px 0 0 12px;
}


/* PROJECT 2 */

.campus-shape {
    position: absolute;
    bottom: 0;
    left: 13%;
    right: 13%;
    height: 120px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 7px;
}

.campus-shape div {
    width: 28%;
    height: 70%;
    background: linear-gradient(#d5d5c7, #9bb8ac);
    border-radius: 4px 4px 0 0;
}

.campus-shape div:nth-child(2) {
    height: 100%;
    width: 34%;
    background: linear-gradient(#e4d9c4, #8eaaa0);
}


/* PROJECT 3 */

.code-art {
    position: absolute;
    inset: 48px 40px 20px;
    background: #171722e8;
    border: 1px solid #ffffff2a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #80e2c2;
}

.code-art b {
    font: 700 65px var(--display);
    color: #b79aff;
}

.code-art small {
    font: 12px/1.8 monospace;
    color: #e9d9ff;
}


/* PROJECT INFORMATION */

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
}

.project-info h3 {
    font: 600 16px var(--display);
    margin: 0;
}

.project-info p {
    font-size: 10px;
    color: var(--muted);
    margin: 3px 0 0;
}

.open-project,
.round-button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    cursor: pointer;
}

.open-project:hover,
.round-button:hover {
    background: var(--accent);
    color: #171522;
}


/* =========================================
   REVIEWS SECTION
========================================= */

.review-wrap {
    padding: 36px 42px;
    border-radius: 18px;
    max-width: 820px;
}

.quote-mark {
    font: 700 65px/.7 var(--display);
    color: var(--accent);
}

.review-track blockquote {
    font: 500 clamp(19px, 3vw, 27px)/1.45 var(--display);
    margin: 20px 0 17px;
    max-width: 690px;
}

.review-author {
    font-size: 11px;
    color: var(--muted);
}

.review-author strong {
    color: var(--text);
}


/* REVIEW CONTROLS */

.review-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
}

.review-dots {
    display: flex;
    gap: 7px;
}

.review-dot {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 10px;
    background: var(--muted);
    opacity: .4;
    cursor: pointer;
}

.review-dot.active {
    width: 22px;
    background: var(--accent);
    opacity: 1;
}

.review-controls > div:last-child {
    display: flex;
    gap: 8px;
}

.review-note {
    font-size: 10px;
    color: var(--muted);
    margin-top: 12px;
}


/* =========================================
   CONTACT SECTION
========================================= */

.contact-section {
    padding-top: 80px;
    padding-bottom: 100px;
}

.contact-panel {
    border-radius: 22px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.contact-copy > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 13px;
    max-width: 360px;
    margin: 22px 0;
}


/* CONTACT DETAILS */

.contact-detail {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    margin: 12px 0;
}

.contact-detail span:first-child {
    color: var(--accent2);
}

.map-link {
    display: inline-block;
    color: var(--accent);
    font-size: 11px;
    margin: 12px 15px 0 0;
}


/* =========================================
   CONTACT FORM
========================================= */

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-heading {
    margin-bottom: 20px;
}

.form-heading h3 {
    font: 600 22px var(--display);
    margin: 0;
}

.form-heading span {
    font-size: 11px;
    color: var(--muted);
}

.contact-form label {
    font-size: 10px;
    margin: 12px 0 6px;
    color: var(--muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 13px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    outline: none;
    font-size: 12px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.contact-form input.invalid,
.contact-form textarea.invalid {
    border-color: #e77987;
}

.error {
    color: #e77987;
    font-size: 10px;
    min-height: 14px;
}

.submit-button {
    margin-top: 13px;
    cursor: pointer;
}

.form-status {
    font-size: 10px;
    color: var(--muted);
}

.form-status.success {
    color: var(--accent2);
}


/* =========================================
   FOOTER
========================================= */

.footer {
    min-height: 85px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.footer p,
.footer > a:last-child {
    font-size: 10px;
    color: var(--muted);
}


/* =========================================
   PROJECT DETAILS MODAL
========================================= */

.project-modal {
    width: min(520px, calc(100% - 30px));
    padding: 35px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--bg);
    color: var(--text);
    box-shadow: var(--shadow);
}

.project-modal::backdrop {
    background: #05050bcc;
    backdrop-filter: blur(6px);
}

.project-modal h2 {
    font: 600 30px var(--display);
    margin: 0 0 12px;
}

.project-modal > p:not(.eyebrow) {
    font-size: 13px;
    color: var(--muted);
}

.modal-close {
    float: right;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    cursor: pointer;
}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes float {
    50% {
        transform: translateY(-12px);
    }
}


/* =========================================
   TABLET RESPONSIVE DESIGN
========================================= */

@media (max-width: 850px) {

    .nav-links {
        gap: 15px;
    }

    .hero {
        grid-template-columns: 1fr .8fr;
    }

    .hero-visual {
        transform: scale(.88);
    }

    .about-grid {
        gap: 35px;
    }

    .contact-panel {
        gap: 35px;
        padding: 35px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================
   MOBILE RESPONSIVE DESIGN
========================================= */

@media (max-width: 650px) {

    .container {
        width: min(100% - 34px, 520px);
    }

    .section {
        padding: 78px 0;
    }

    .nav {
        height: 68px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
    }

    .menu-toggle span {
        width: 15px;
        height: 1px;
        background: var(--text);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        padding: 20px 25px 25px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 17px;
    }

    .nav-links.open {
        display: flex;
    }

    .theme-toggle {
        align-self: flex-start;
    }

    .hero {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 75px;
        min-height: auto;
    }

    .hero-copy {
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(58px, 15vw, 82px);
    }

    .hero-visual {
        width: 100%;
        height: 390px;
        transform: none;
        margin-top: 10px;
    }

    .profile-card {
        width: 280px;
    }

    .avatar-art {
        height: 190px;
    }

    .orbit-a {
        width: 350px;
        height: 260px;
    }

    .orbit-b {
        width: 300px;
        height: 360px;
    }

    .chip-code {
        left: 0;
        top: 45px;
    }

    .chip-idea {
        right: 0;
        bottom: 42px;
    }

    .scroll-cue {
        bottom: 0;
    }

    .about-grid,
    .contact-panel {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-stats {
        gap: 9px;
    }

    .stat-card {
        padding: 17px;
        min-height: 100px;
    }

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

    .skill-card p {
        min-height: 0;
    }

    .project-heading {
        display: block;
    }

    .project-heading .section-subtitle {
        margin-top: 14px;
    }

    .project-art {
        height: 220px;
    }

    .review-wrap {
        padding: 27px 23px;
    }

    .contact-panel {
        padding: 27px 20px;
    }

    .footer {
        padding: 22px 0;
        flex-wrap: wrap;
    }

    .footer p {
        order: 3;
        width: 100%;
        margin: 0;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

}


/* =========================================
   REDUCED MOTION ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}
