/* =========================================================
   GLOBAL RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 80px;
}

body {
    background: #070a0f;
    color: #f2f5f8;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

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

button {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --bg: #070a0f;
    --bg-soft: #0b1016;
    --card: #0c1118;
    --card-light: #111820;

    --text: #f2f5f8;
    --muted: #8f9bad;
    --muted-light: #aab5c7;

    --cyan: #55dcff;
    --cyan-dark: #18bde8;

    --border: rgba(255, 255, 255, 0.11);
    --border-bright: rgba(85, 220, 255, 0.35);

    --mono: "DM Mono", monospace;
}


/* =========================================================
   COMMON
========================================================= */

.section {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
}

.section-container {
    width: min(1280px, calc(100% - 120px));
    margin: 0 auto;
}

.section-label,
.mono-label,
.small-heading,
.project-meta,
.project-tags,
.research-type,
.timeline-type,
.hero-label {
    font-family: var(--mono);
}

.section-label {
    color: var(--cyan);
    font-size: 12px;
    letter-spacing: 0.18em;
    font-weight: 500;
    margin-bottom: 70px;
}

.small-heading {
    color: var(--cyan);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.section-introduction {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: 100px;
    align-items: end;
    margin-bottom: 75px;
}

.section-introduction h2,
.section-heading h2 {
    font-size: clamp(50px, 6vw, 92px);
    line-height: 0.95;
    letter-spacing: -0.055em;
    font-weight: 700;
}

.section-introduction h2 em,
.section-heading h2 em {
    color: #8490a5;
    font-style: normal;
}

.section-introduction > p {
    color: var(--muted-light);
    font-size: 17px;
    line-height: 1.7;
    max-width: 550px;
    padding-bottom: 5px;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 78px;
    z-index: 1000;

    background: rgba(7, 10, 15, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.site-header.scrolled {
    background: rgba(7, 10, 15, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-container {
    width: min(1400px, calc(100% - 100px));
    height: 100%;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.08em;
}

.logo span {
    color: var(--cyan);
}

.desktop-navigation {
    display: flex;
    align-items: center;
    gap: 38px;
}

.desktop-navigation a {
    color: #9ca7b8;
    font-size: 14px;
    transition: color 0.25s ease;
}

.desktop-navigation a:hover {
    color: white;
}

.nav-contact {
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 13px 21px;

    font-size: 14px;
    font-weight: 500;

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.nav-contact span {
    margin-left: 7px;
}

.nav-contact:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
}

.menu-button {
    display: none;
    background: none;
    border: 0;
    width: 38px;
    height: 38px;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 24px;
    height: 1px;
    background: white;
    margin: 6px auto;
}

.mobile-navigation {
    display: none;
}


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

.hero {
    min-height: 100vh;
    position: relative;

    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;

    padding: 145px 7vw 90px;

    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 80%
    );

    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.hero-glow-one {
    width: 500px;
    height: 500px;

    right: -150px;
    top: 15%;

    background: rgba(38, 150, 180, 0.09);
}

.hero-glow-two {
    width: 400px;
    height: 400px;

    left: -150px;
    bottom: -100px;

    background: rgba(30, 70, 160, 0.08);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #b6c1d2;

    font-size: 12px;
    letter-spacing: 0.17em;

    margin-bottom: 45px;
}

.status-dot {
    width: 8px;
    height: 8px;

    display: inline-block;

    background: var(--cyan);
    border-radius: 50%;

    box-shadow: 0 0 14px rgba(85, 220, 255, 0.8);
}

.hero h1 {
    max-width: 900px;

    font-size: clamp(68px, 7.2vw, 128px);
    line-height: 0.87;

    letter-spacing: -0.07em;
    font-weight: 800;

    margin-bottom: 48px;
}

.hero h1 span {
    color: var(--cyan);
}

.hero h2 {
    max-width: 800px;

    color: #d3dae5;

    font-size: clamp(22px, 2vw, 31px);
    line-height: 1.25;

    font-weight: 500;

    margin-bottom: 25px;
}

.hero-description {
    max-width: 680px;

    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;

    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 53px;
    padding: 0 23px;

    border-radius: 40px;

    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.primary-button {
    color: #061017;
    background: var(--cyan);
}

.primary-button:hover {
    transform: translateY(-2px);
    background: #8ae9ff;
}

.primary-button span,
.secondary-button span {
    margin-left: 8px;
}

.secondary-button {
    border: 1px solid var(--border);
    color: white;
}

.secondary-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.hero-information {
    margin-top: 60px;

    display: flex;
    align-items: center;
    gap: 15px;

    color: #768295;

    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.information-line {
    width: 45px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}


/* =========================================================
   HERO PHOTO
========================================================= */

.hero-photo-container {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: flex-end;
}

/*
   UPDATED:
   Smaller frame matching the previous design.
*/

.photo-frame {
    position: relative;

    width: min(490px, 100%);
    aspect-ratio: 0.78;

    border: 1px solid rgba(85, 220, 255, 0.23);

    background: #080d12;

    overflow: hidden;
    isolation: isolate;

    cursor: pointer;
}

/*
   UPDATED:
   Hover animation restored.
*/

.profile-photo {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;

    opacity: 0.93;

    transform: scale(1);

    transition:
        transform 0.65s cubic-bezier(0.2, 0.65, 0.3, 1),
        opacity 0.45s ease;

    will-change: transform;
}

.photo-frame:hover .profile-photo {
    transform: scale(1.07);
    opacity: 1;
}

.photo-gradient {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            to top,
            rgba(4, 8, 12, 0.85),
            transparent 38%
        );

    pointer-events: none;
}

.photo-header {
    position: absolute;
    top: 20px;
    left: 22px;
    right: 22px;

    z-index: 3;

    display: flex;
    justify-content: space-between;

    color: white;

    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
}

.photo-status {
    position: absolute;

    bottom: 25px;
    left: 25px;

    z-index: 3;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 11px 15px;

    background: rgba(7, 10, 15, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);

    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.05em;
}

.photo-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    z-index: 4;
}

.photo-corner.top-right {
    top: 14px;
    right: 14px;

    border-top: 1px solid white;
    border-right: 1px solid white;
}

.photo-corner.bottom-right {
    bottom: 14px;
    right: 14px;

    border-bottom: 1px solid white;
    border-right: 1px solid white;
}

.scroll-indicator {
    position: absolute;

    left: 7vw;
    bottom: 25px;

    display: flex;
    align-items: center;
    gap: 13px;

    color: #647083;

    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
}

.scroll-arrow {
    color: var(--cyan);
    font-size: 16px;
}


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

.about-section {
    background: #080b10;
}

.about-layout {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 120px;
}

.about-content {
    max-width: 700px;
}

.about-content p {
    color: var(--muted-light);

    font-size: 17px;
    line-height: 1.8;

    margin-bottom: 22px;
}

.about-content .about-lead {
    color: #dce3ec;
    font-size: 22px;
    line-height: 1.6;
}

.about-content strong {
    color: white;
}

.about-statistics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    margin-top: 55px;
    padding-top: 30px;

    border-top: 1px solid var(--border);
}

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

.stat strong {
    font-size: 28px;
}

.stat span {
    color: #697587;

    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
}


/* =========================================================
   EXPERTISE
========================================================= */

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

.expertise-card {
    position: relative;

    min-height: 470px;

    padding: 38px;

    background:
        linear-gradient(
            145deg,
            #0d141c,
            #090d13
        );

    border: 1px solid var(--border);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    border-color: rgba(85, 220, 255, 0.3);
}

.card-number {
    position: absolute;

    top: 28px;
    right: 30px;

    color: #5d6878;

    font-family: var(--mono);
    font-size: 11px;
}

.card-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(85, 220, 255, 0.25);

    color: var(--cyan);

    font-size: 24px;

    margin-bottom: 60px;
}

.expertise-card h3 {
    font-size: 30px;
    letter-spacing: -0.04em;

    margin-bottom: 20px;
}

.expertise-card > p {
    color: var(--muted);
    line-height: 1.7;

    min-height: 85px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 35px;
}

.skills span,
.project-tags span {
    display: inline-flex;

    padding: 8px 11px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;

    color: #8995a8;

    font-family: var(--mono);
    font-size: 9px;
}

.learning-bar {
    margin-top: 18px;

    padding: 25px 30px;

    border: 1px solid rgba(85, 220, 255, 0.18);

    background: rgba(85, 220, 255, 0.025);

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.learning-bar div {
    display: flex;
    align-items: center;
    gap: 25px;
}

.mono-label {
    color: var(--cyan);

    font-size: 10px;
    letter-spacing: 0.13em;
}

.learning-bar strong {
    color: #c4ccd7;
    font-size: 14px;
    font-weight: 500;
}

.learning-dot {
    width: 8px;
    height: 8px;

    background: var(--cyan);
    border-radius: 50%;
}


/* =========================================================
   PROJECTS
========================================================= */

.projects-section {
    background: #070a0f;
}

.project-filters {
    display: flex;
    gap: 40px;

    margin-bottom: 45px;
}

.filter {
    background: none;
    border: 0;

    color: #8290a4;

    font-size: 14px;

    cursor: pointer;

    padding: 14px 0;

    transition: color 0.25s ease;
}

.filter:hover {
    color: white;
}

.filter.active {
    color: #061017;

    background: var(--cyan);

    padding: 14px 22px;

    border-radius: 40px;
}

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

.project-card {
    background: #0b1017;

    border: 1px solid rgba(255, 255, 255, 0.09);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(85, 220, 255, 0.25);
}

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


/* =========================================================
   PROJECT VISUAL
========================================================= */

.project-visual {
    position: relative;

    height: 390px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 25% 20%,
            rgba(40, 120, 150, 0.2),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #111b20,
            #080d12
        );
}

.project-visual::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    pointer-events: none;
}

.project-visual-powerbi {
    background:
        radial-gradient(
            circle at 70% 20%,
            rgba(190, 130, 35, 0.15),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #121815,
            #0b0e0c
        );
}

.project-visual-netflix {
    background:
        radial-gradient(
            circle at 65% 30%,
            rgba(100, 20, 20, 0.16),
            transparent 45%
        ),
        #0d0d10;
}

.project-visual-ai {
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(85, 220, 255, 0.16),
            transparent 45%
        ),
        #0a1118;
}

.project-visual-code {
    background:
        radial-gradient(
            circle at 65% 30%,
            rgba(120, 80, 180, 0.12),
            transparent 45%
        ),
        #0b0d13;
}

.project-screenshot {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.6s ease,
        opacity 0.4s ease;
}

.project-card:hover .project-screenshot {
    transform: scale(1.035);
}

.project-image-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(5, 8, 12, 0.05),
            rgba(5, 8, 12, 0.45)
        );

    pointer-events: none;
}

.project-visual-overlay {
    position: absolute;

    top: 22px;
    left: 25px;
    right: 25px;

    display: flex;
    justify-content: space-between;

    z-index: 3;
}

.project-visual-overlay span:first-child {
    border: 1px solid rgba(255,255,255,0.15);

    background: rgba(5,8,12,0.55);

    padding: 9px 13px;

    border-radius: 30px;

    color: #929cac;

    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
}

.project-visual-overlay span:last-child {
    color: #8490a2;

    font-family: var(--mono);
    font-size: 10px;
}

.project-preview-label {
    position: absolute;

    bottom: 25px;
    left: 25px;

    z-index: 4;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 11px 16px;

    background: rgba(7, 10, 15, 0.82);

    border: 1px solid rgba(255,255,255,0.12);

    border-radius: 30px;

    color: #dce2eb;

    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
}

.project-zoom {
    position: absolute;

    right: 25px;
    bottom: 25px;

    z-index: 5;

    border: 0;

    background: rgba(7, 10, 15, 0.85);

    color: white;

    border-radius: 30px;

    padding: 12px 18px;

    font-family: var(--mono);
    font-size: 10px;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.project-zoom:hover {
    background: var(--cyan);
    color: #061017;

    transform: translateY(-2px);
}


/* =========================================================
   PROJECT VISUAL TEXT
========================================================= */

.project-visual-content {
    position: absolute;

    left: 35px;
    bottom: 35px;

    z-index: 2;

    display: flex;
    flex-direction: column;
}

.visual-number {
    color: var(--cyan);

    font-family: var(--mono);
    font-size: 12px;

    margin-bottom: 28px;
}

.visual-title {
    color: #f2f5f8;

    font-size: 85px;
    line-height: 0.85;

    font-weight: 800;

    letter-spacing: -0.07em;
}

.visual-subtitle {
    color: #8993a2;

    font-family: var(--mono);
    font-size: 10px;

    letter-spacing: 0.16em;

    margin-top: 20px;
}


/* =========================================================
   PROJECT CONTENT
========================================================= */

.project-content {
    padding: 38px 35px 35px;
}

.project-meta {
    display: flex;
    justify-content: space-between;

    color: #69768a;

    font-size: 9px;
    letter-spacing: 0.12em;

    margin-bottom: 28px;
}

.project-content h3 {
    font-size: 36px;
    line-height: 1.05;

    letter-spacing: -0.045em;

    margin-bottom: 25px;
}

.project-content h3 em {
    color: var(--cyan);
    font-style: normal;
}

.project-content > p {
    color: #9aa6b8;

    font-size: 15px;
    line-height: 1.75;

    margin-bottom: 25px;
}

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

.project-actions {
    display: flex;
    align-items: center;
    gap: 20px;

    margin-top: 30px;
    padding-top: 24px;

    border-top: 1px solid rgba(255,255,255,0.1);
}

.project-actions a,
.project-details-button {
    color: var(--cyan);

    background: none;
    border: 0;

    font-family: var(--mono);
    font-size: 10px;

    cursor: pointer;

    transition: color 0.2s ease;
}

.project-actions a:hover,
.project-details-button:hover {
    color: white;
}

.projects-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 35px;
    padding-top: 25px;

    border-top: 1px solid var(--border);
}

.projects-footer p {
    color: #707d90;
    font-size: 14px;
}

.projects-footer a {
    color: var(--cyan);

    font-family: var(--mono);
    font-size: 10px;
}


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

.project-modal {
    position: fixed;
    inset: 0;

    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.86);

    backdrop-filter: blur(10px);
}

.project-modal-content {
    position: relative;
    z-index: 2;

    width: min(1100px, 100%);
    max-height: 92vh;

    overflow-y: auto;

    padding: 40px;

    background: #0b1017;

    border: 1px solid rgba(85, 220, 255, 0.22);

    box-shadow:
        0 30px 100px rgba(0,0,0,0.7);

    transform: translateY(20px) scale(0.98);

    transition: transform 0.3s ease;
}

.project-modal.active .project-modal-content {
    transform: translateY(0) scale(1);
}

.project-modal-close {
    position: absolute;

    top: 18px;
    right: 22px;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 50%;

    background: rgba(255,255,255,0.03);

    color: white;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.project-modal-close:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.project-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-right: 55px;

    margin-bottom: 22px;

    color: #728096;

    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.project-modal-content h2 {
    max-width: 800px;

    font-size: clamp(30px, 4vw, 55px);
    line-height: 1;

    letter-spacing: -0.05em;

    margin-bottom: 18px;
}

.project-modal-content > p {
    max-width: 760px;

    color: #929eb0;

    font-size: 15px;
    line-height: 1.7;

    margin-bottom: 30px;
}


/* =========================================================
   MODAL GALLERY
========================================================= */

.project-modal-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 16px;

    margin-top: 25px;
}

.modal-image-card {
    background: #070a0f;

    border: 1px solid rgba(255,255,255,0.1);

    overflow: hidden;
}

.modal-image-card > span {
    display: block;

    padding: 13px 16px;

    color: #7d899a;

    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.modal-image-card img {
    width: 100%;
    height: 330px;

    object-fit: contain;

    background: #05070a;
}

.project-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-top: 25px;
    padding-top: 25px;

    border-top: 1px solid rgba(255,255,255,0.1);
}


/* =========================================================
   RESEARCH
========================================================= */

.research-section {
    background: #080b10;
}

.research-list {
    border-top: 1px solid var(--border);
}

.research-item {
    display: grid;
    grid-template-columns: 140px 1fr;

    gap: 45px;

    padding: 45px 0;

    border-bottom: 1px solid var(--border);
}

.research-year {
    color: #778397;

    font-family: var(--mono);
    font-size: 11px;
}

.research-type {
    color: var(--cyan);

    font-size: 9px;
    letter-spacing: 0.12em;
}

.research-item h3 {
    max-width: 850px;

    font-size: 29px;
    line-height: 1.2;

    letter-spacing: -0.03em;

    margin: 13px 0 15px;
}

.research-item p {
    max-width: 700px;

    color: #8d99aa;

    font-size: 14px;
    line-height: 1.7;

    margin-bottom: 18px;
}

.research-item a,
.research-note {
    color: var(--cyan);

    font-family: var(--mono);
    font-size: 10px;
}

.research-note {
    color: #7d899b;
}


/* =========================================================
   JOURNEY
========================================================= */

.journey-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;

    gap: 120px;
}

.timeline {
    border-left: 1px solid rgba(255,255,255,0.13);
}

.timeline-item {
    position: relative;

    display: grid;
    grid-template-columns: 110px 1fr;

    gap: 35px;

    padding: 0 0 65px 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-date {
    color: #687589;

    font-family: var(--mono);
    font-size: 10px;
}

.timeline-dot {
    position: absolute;

    left: -5px;
    top: 2px;

    width: 9px;
    height: 9px;

    background: var(--cyan);

    border-radius: 50%;

    box-shadow: 0 0 12px rgba(85,220,255,0.5);
}

.timeline-type {
    color: var(--cyan);

    font-size: 9px;
    letter-spacing: 0.12em;
}

.timeline-item h3 {
    font-size: 25px;
    line-height: 1.2;

    margin: 12px 0 8px;
}

.timeline-company {
    color: #c1cbd8 !important;
}

.timeline-item p {
    color: #7f8b9d;

    font-size: 14px;
    line-height: 1.7;

    margin-top: 8px;
}

.timeline-item strong {
    color: white;
}


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

.contact-section {
    padding-bottom: 90px;
}

.contact-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 70px;
    align-items: center;

    padding: 70px;

    border: 1px solid rgba(85,220,255,0.2);

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(85,220,255,0.08),
            transparent 35%
        ),
        #0a1017;
}

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

.contact-information h2 {
    font-size: clamp(55px, 7vw, 100px);

    line-height: 0.92;

    letter-spacing: -0.06em;

    margin: 30px 0;
}

.contact-information h2 em {
    color: #7f8a9c;
    font-style: normal;
}

.contact-information p {
    max-width: 650px;

    color: #929eaf;

    font-size: 16px;
    line-height: 1.7;

    margin-bottom: 25px;
}

.email {
    color: var(--cyan);

    font-family: var(--mono);
    font-size: 11px;

    border-bottom: 1px solid rgba(85,220,255,0.3);

    padding-bottom: 5px;
}


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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;

    width: 100%;
    padding: 28px;

    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-header {
    margin-bottom: 5px;
}

.contact-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form-field label {
    color: #8f9bad;

    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-form-field input,
.contact-form-field textarea {
    width: 100%;

    padding: 12px 13px;

    background: rgba(7, 10, 15, 0.7);

    border: 1px solid rgba(255, 255, 255, 0.1);

    color: #f2f5f8;

    font-family: inherit;
    font-size: 13px;

    outline: none;

    transition:
        border-color 0.25s ease,
        background 0.25s ease;
}

.contact-form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
    color: #596576;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
    border-color: rgba(85, 220, 255, 0.45);
    background: rgba(7, 10, 15, 0.9);
}

.contact-submit {
    width: 100%;

    margin-top: 5px;
    padding: 13px 18px;

    border: 1px solid rgba(85, 220, 255, 0.3);
    border-radius: 30px;

    background: var(--cyan);
    color: #061017;

    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.contact-submit:hover {
    background: #8ae9ff;
    transform: translateY(-2px);
}


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

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 12px;

    margin-top: 25px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 12px 17px;

    border: 1px solid rgba(255,255,255,0.1);

    border-radius: 30px;

    color: #8d99aa;

    font-size: 12px;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.social-links a:hover {
    color: white;

    border-color: rgba(85,220,255,0.35);

    background: rgba(85,220,255,0.04);

    transform: translateY(-2px);
}

.social-links svg {
    width: 17px;
    height: 17px;

    fill: currentColor;
}


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

.footer {
    padding: 32px 20px 38px;

    border-top: 1px solid rgba(255, 255, 255, 0.07);

    background: #070a0f;

    text-align: center;
}

.footer-container {
    width: min(1280px, 100%);
    margin: auto;

    display: flex;
    justify-content: center;
    align-items: center;

    color: #697587;

    font-family: var(--mono);
    font-size: 10px;

    letter-spacing: 0.06em;

    line-height: 1.7;
}

.footer-container strong {
    color: #dce3ec;
    font-weight: 500;
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1100px) {

    .section-container {
        width: min(100% - 70px, 1000px);
    }

    .nav-container {
        width: calc(100% - 60px);
    }

    .desktop-navigation {
        gap: 22px;
    }

    .hero {
        grid-template-columns: 1fr 0.75fr;

        padding-left: 5vw;
        padding-right: 5vw;
    }

    .hero h1 {
        font-size: clamp(60px, 7vw, 95px);
    }

    .about-layout,
    .journey-layout {
        gap: 60px;
    }

    .section-introduction {
        gap: 50px;
    }

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

    .expertise-card {
        min-height: auto;
    }

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

    /*
       Keep the profile frame smaller on tablet.
    */

    .photo-frame {
        width: min(450px, 100%);
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 760px) {

    .section {
        padding: 95px 0;
    }

    .section-container {
        width: calc(100% - 40px);
    }

    .site-header {
        height: 68px;
    }

    .nav-container {
        width: calc(100% - 35px);
    }

    .desktop-navigation,
    .nav-contact {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .mobile-navigation {
    position: absolute;

    top: 68px;
    left: 0;

    width: 100%;

    display: flex;
    flex-direction: column;

    padding: 20px;

    background: #070a0f;

    border-bottom: 1px solid var(--border);

    z-index: 1001;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

    .mobile-navigation.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-navigation a {
        padding: 15px 5px;

        color: #a1acbc;

        border-bottom: 1px solid rgba(255,255,255,0.06);
    }


    /* HERO */

    .hero {
        min-height: auto;

        display: flex;
        flex-direction: column;

        padding:
            125px
            20px
            80px;
    }

    .hero-label {
        margin-bottom: 30px;
    }

    .hero h1 {
        font-size: clamp(54px, 15vw, 85px);
        line-height: 0.9;

        margin-bottom: 30px;
    }

    .hero h2 {
        font-size: 21px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-photo-container {
        width: 100%;
        margin-top: 60px;

        justify-content: center;
    }

    /*
       Smaller mobile frame.
    */

    .photo-frame {
        width: min(430px, 100%);
        max-width: 430px;
        margin: auto;
    }

    .scroll-indicator {
        display: none;
    }


    /* SECTIONS */

    .section-label {
        margin-bottom: 45px;
    }

    .section-introduction {
        display: block;
        margin-bottom: 50px;
    }

    .section-introduction h2,
    .section-heading h2 {
        font-size: 54px;
        margin-bottom: 35px;
    }

    .section-introduction > p {
        font-size: 15px;
    }


    /* ABOUT */

    .about-layout {
        display: block;
    }

    .about-content {
        margin-top: 55px;
    }

    .about-content .about-lead {
        font-size: 19px;
    }

    .about-content p {
        font-size: 15px;
    }

    .about-statistics {
        grid-template-columns: 1fr;
        gap: 25px;
    }


    /* EXPERTISE */

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

    .expertise-card {
        padding: 28px;
    }

    .learning-bar {
        align-items: flex-start;
    }

    .learning-bar div {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }


    /* PROJECTS */

    .project-filters {
        gap: 15px;
        flex-wrap: wrap;
    }

    .filter {
        font-size: 12px;
    }

    .filter.active {
        padding: 12px 17px;
    }

    .project-visual {
        height: 300px;
    }

    .visual-title {
        font-size: 60px;
    }

    .project-content {
        padding: 30px 24px;
    }

    .project-content h3 {
        font-size: 30px;
    }

    .project-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .projects-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }


    /* MODAL */

    .project-modal {
        padding: 12px;
    }

    .project-modal-content {
        padding: 25px 18px;
        max-height: 95vh;
    }

    .project-modal-gallery {
        grid-template-columns: 1fr;
    }

    .modal-image-card img {
        height: auto;
        max-height: 400px;
    }

    .project-modal-footer {
        flex-direction: column;
        align-items: flex-start;
    }


    /* RESEARCH */

    .research-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .research-item h3 {
        font-size: 23px;
    }


    /* JOURNEY */

    .journey-layout {
        display: block;
    }

    .timeline {
        margin-top: 60px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-left: 25px;
    }


    /* CONTACT */

    .contact-box {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 40px 25px;
}

    .contact-information h2 {
        font-size: 55px;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .social-links a {
        padding: 11px 14px;
    }

    .footer-container {
    width: calc(100% - 40px);
    flex-direction: column;
    align-items: center;
    text-align: center;
}
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .hero h1 {
        font-size: 51px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .section-introduction h2,
    .section-heading h2 {
        font-size: 47px;
    }

    .visual-title {
        font-size: 50px;
    }

    .project-visual-overlay {
        left: 15px;
        right: 15px;
    }

    .project-preview-label {
        left: 15px;
        bottom: 15px;
    }

    .project-zoom {
        right: 15px;
        bottom: 15px;
    }

    .contact-information h2 {
        font-size: 48px;
    }

    .social-links a {
        width: 100%;
        justify-content: center;
    }

    /*
       Keep image from becoming oversized on small phones.
    */

    .photo-frame {
        width: 100%;
        max-width: 380px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}


/* =========================================================
   SELECTION
========================================================= */

::selection {
    background: var(--cyan);
    color: #061017;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #070a0f;
}

::-webkit-scrollbar-thumb {
    background: #29313c;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d4857;
}
/* =========================================================
   ANAND'S PORTFOLIO AI ASSISTANT
========================================================= */

.ai-assistant {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 9999;
    font-family: var(--mono);
}


/* =========================================================
   CHAT WINDOW
========================================================= */

.ai-chat-window {
    width: 370px;
    max-width: calc(100vw - 32px);

    background: #0b1017;

    border: 1px solid rgba(98, 222, 252, 0.25);
    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(98, 222, 252, 0.08);

    transform-origin: bottom right;

    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.96);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;
}


/* OPEN STATE */

.ai-assistant.ai-open .ai-chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}


/* =========================================================
   CHAT HEADER
========================================================= */

.ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 17px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    background: #0d131b;
}


.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 11px;
}


.ai-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border: 1px solid rgba(98, 222, 252, 0.35);

    color: #62defc;

    font-size: 18px;

    background: rgba(98, 222, 252, 0.06);

    box-shadow: 0 0 18px rgba(98, 222, 252, 0.12);
}


.ai-chat-title h3 {
    margin: 0;

    color: #f1f5f9;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;

    font-weight: 600;
}


.ai-chat-title span {
    display: block;

    margin-top: 3px;

    color: #697587;

    font-size: 9px;

    letter-spacing: 0.08em;
}


.ai-close {
    width: 34px;
    height: 34px;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: #77879a;

    font-size: 23px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.ai-close:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.06);
}


/* =========================================================
   CHAT BODY
========================================================= */

.ai-chat-body {
    padding: 18px;

    max-height: 390px;

    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: #26313c transparent;
}


.ai-message {
    display: flex;
    gap: 10px;

    margin-bottom: 18px;
}


.ai-message-avatar {
    flex: 0 0 29px;

    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 2px;

    border-radius: 50%;

    background: rgba(98, 222, 252, 0.07);

    border: 1px solid rgba(98, 222, 252, 0.2);

    color: #62defc;

    font-size: 13px;
}


.ai-message-content {
    padding: 11px 13px;

    border-radius: 4px 13px 13px 13px;

    background: #111821;

    border: 1px solid rgba(255, 255, 255, 0.055);

    color: #aeb9c8;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 13px;

    line-height: 1.55;
}


.ai-message-content p {
    margin: 0 0 9px;
}


.ai-message-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   USER MESSAGE
========================================================= */

.ai-message-user {
    justify-content: flex-end;
}


.ai-message-user .ai-message-content {
    border-radius: 13px 4px 13px 13px;

    background: rgba(98, 222, 252, 0.08);

    border-color: rgba(98, 222, 252, 0.14);

    color: #dbe8ef;
}


/* =========================================================
   QUICK QUESTIONS
========================================================= */

.ai-quick-questions {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 4px;
}


.ai-quick-questions button {
    padding: 8px 10px;

    border: 1px solid rgba(98, 222, 252, 0.18);

    border-radius: 20px;

    background: rgba(98, 222, 252, 0.035);

    color: #9eafc0;

    font-family: var(--mono);

    font-size: 9px;

    letter-spacing: 0.02em;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.ai-quick-questions button:hover {
    border-color: rgba(98, 222, 252, 0.45);

    color: #62defc;

    background: rgba(98, 222, 252, 0.07);

    transform: translateY(-1px);
}


/* =========================================================
   INPUT
========================================================= */

.ai-chat-input-area {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 12px;

    border-top: 1px solid rgba(255, 255, 255, 0.07);

    background: #0d131b;
}


.ai-chat-input-area input {
    flex: 1;

    min-width: 0;

    height: 42px;

    padding: 0 13px;

    border: 1px solid rgba(255, 255, 255, 0.09);

    border-radius: 10px;

    outline: none;

    background: #080d13;

    color: #e8eef5;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 13px;

    transition: border-color 0.2s ease;
}


.ai-chat-input-area input::placeholder {
    color: #596879;
}


.ai-chat-input-area input:focus {
    border-color: rgba(98, 222, 252, 0.35);
}


.ai-chat-input-area button {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(98, 222, 252, 0.3);

    border-radius: 10px;

    background: rgba(98, 222, 252, 0.08);

    color: #62defc;

    font-size: 18px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.ai-chat-input-area button:hover {
    background: rgba(98, 222, 252, 0.15);

    transform: translateY(-1px);
}


/* =========================================================
   UNIQUE AI LAUNCHER
========================================================= */

.ai-launcher {
    position: absolute;

    right: 0;
    bottom: 0;

    width: 62px;
    height: 62px;

    border: 1px solid rgba(98, 222, 252, 0.4);

    border-radius: 50%;

    background: #0b1017;

    color: #62defc;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(98, 222, 252, 0.1);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.ai-launcher:hover {
    transform: translateY(-3px);

    border-color: rgba(98, 222, 252, 0.75);

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.5),
        0 0 35px rgba(98, 222, 252, 0.18);
}


/* AI SYMBOL */

.ai-launcher-symbol {
    position: relative;

    z-index: 2;

    font-size: 22px;

    line-height: 1;

    text-shadow: 0 0 12px rgba(98, 222, 252, 0.65);
}


/* ORBIT */

.ai-launcher-orbit {
    position: absolute;

    width: 43px;
    height: 19px;

    border: 1px solid rgba(98, 222, 252, 0.35);

    border-radius: 50%;

    transform: rotate(-35deg);

    animation: aiOrbit 3s linear infinite;
}


.ai-launcher-orbit::after {
    content: "";

    position: absolute;

    width: 5px;
    height: 5px;

    top: 1px;
    right: 4px;

    border-radius: 50%;

    background: #62defc;

    box-shadow: 0 0 9px rgba(98, 222, 252, 0.9);
}


@keyframes aiOrbit {

    from {
        transform: rotate(-35deg);
    }

    to {
        transform: rotate(325deg);
    }

}


/* ASK ANAND LABEL */

.ai-launcher-label {
    position: absolute;

    right: 72px;

    padding: 7px 10px;

    border: 1px solid rgba(98, 222, 252, 0.18);

    border-radius: 6px;

    background: #0b1017;

    color: #62defc;

    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: 0.12em;

    white-space: nowrap;

    opacity: 0;

    transform: translateX(5px);

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.ai-launcher:hover .ai-launcher-label {
    opacity: 1;

    transform: translateX(0);
}


/* HIDE LAUNCHER WHEN CHAT IS OPEN */

.ai-assistant.ai-open .ai-launcher {
    opacity: 0;

    pointer-events: none;

    transform: scale(0.7);
}


/* =========================================================
   ATTENTION ANIMATION ON FIRST LOAD
========================================================= */

.ai-assistant.ai-attention .ai-launcher {
    animation: aiAttention 1.2s ease 0.8s 2;
}


@keyframes aiAttention {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .ai-assistant {
        right: 16px;
        bottom: 16px;
    }

    .ai-chat-window {
        width: min(370px, calc(100vw - 32px));

        border-radius: 16px;
    }

    .ai-chat-body {
        max-height: 350px;

        padding: 15px;
    }

    .ai-launcher {
        width: 56px;
        height: 56px;
    }

    .ai-launcher-label {
        display: none;
    }

}


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

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

    .ai-launcher-orbit,
    .ai-assistant.ai-attention .ai-launcher {
        animation: none;
    }

    .ai-chat-window,
    .ai-launcher,
    .ai-quick-questions button,
    .ai-chat-input-area button {
        transition: none;
    }

}
/* =========================================================
   FIXED HEADER SCROLL OFFSET
   ========================================================= */

#about,
#expertise,
#projects,
#research,
#journey,
#contact {
    scroll-margin-top: 90px;
}
/* =========================================================
   MOBILE NAVIGATION — FINAL FIX
   Keeps navigation completely above page content
   and prevents hero text from showing through.
========================================================= */

@media (max-width: 760px) {

    .mobile-navigation {
        position: fixed;

        top: 68px;
        left: 0;
        right: 0;

        width: 100%;

        display: flex;
        flex-direction: column;

        padding: 20px;

        /* SOLID BACKGROUND */
        background: #070a0f;

        border-bottom: 1px solid rgba(255, 255, 255, 0.10);

        /* IMPORTANT: keep menu above hero */
        z-index: 1001;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }


    /* OPEN MENU */

    .mobile-navigation.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translateY(0);
    }


    /* NAVIGATION LINKS */

    .mobile-navigation a {
        position: relative;
        z-index: 1;

        display: block;

        padding: 15px 5px;

        color: #a1acbc;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.06);

        background: #070a0f;

        opacity: 1;
    }


    .mobile-navigation a:last-child {
        border-bottom: none;
    }


    /* Keep the header above everything */

    .site-header {
        z-index: 1000;
    }


    /* Keep the mobile menu above hero content */

    .hero,
    .hero-content,
    .hero-photo-container {
        position: relative;
    }
}