@font-face {
    font-family: 'SpaceGrotesk';
    src: url('../fonts/SpaceGrotesk-Regular.ttf');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SpaceGrotesk';
    src: url('../fonts/SpaceGrotesk-Light.ttf');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

::selection {
    background: #66FCF1;
    color: #0B1120;
}

::-moz-selection {
    background: #66FCF1;
    color: #0B1120;
}

:root {
    --nav-height: 140px;
    --navigation-height: 55px;
    --nav-paddings: 100px;
    --nav-container-paddings: 40px;
    --gap-flex: 2.5vh;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    overflow-x: hidden;
}

/* Canvas */
#particles {
    background-color: #050E3C;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#noise {
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    opacity: .05;
}

/* ===== Container ===== */
.container {
    position: relative;
    padding-left: var(--nav-paddings);
    padding-right: var(--nav-paddings);
    height: 100vh;
    margin: auto;
    overflow: hidden;
}

/* ===== NAVIGATION ===== */
.navigation {
    position: fixed;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 30px;
    padding-left: var(--nav-paddings);
    padding-right: var(--nav-paddings);
    z-index: 100;
    transition: padding 0.3s ease;
}

.navigation.scrolled {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

.nav-container {
    font-family: SpaceGrotesk, serif;
    color: white;
    font-size: 35px;
    width: 100%;
    height: 80px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease,
    border-radius 0.3s ease,
    border 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease,
    padding 0.3s ease;
}

.nav-container.scrolled {
    background: rgba(5, 14, 60, 0.23);
    border-radius: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4.8px);
    -webkit-backdrop-filter: blur(4.8px);
    border: none;
    border-bottom: 1px solid rgba(5, 14, 60, 0.38);
    padding: 0 var(--nav-paddings);
}

.nav-hero {
    cursor: pointer;
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.nav-hero.scrolled {
    color: #050E3C;
}

.nav-hero:hover {
    color: #66FCF1;
}

.nav-hero:active {
    color: #66FCF1;
}

.nav-menu {
    display: flex;
    gap: 50px;
    list-style: none;
}

.nav-menu a {
    position: relative;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu a.scrolled {
    color: #050E3C;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    border-radius: 3px;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #66FCF1;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-menu a:active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-menu a:hover {
    color: #66FCF1;
}

.nav-menu a:active {
    color: #66FCF1;
}

/* ===== HERO CONTENT ===== */
.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
}

.hero-title {
    opacity: 0;
    font-family: 'SpaceGrotesk', serif;
    font-size: 80px;
    font-weight: 300;
    color: white;
    text-align: center;
    line-height: 1.11;
    letter-spacing: -0.1rem;
}

.hero {
    color: #66FCF1;
}

.hero-text {
    border-bottom: 3.5px solid #66FCF1;
}

/* ===== INFO SECTION ===== */
.section-with-fixed-bg {
    position: relative;
    min-height: 100vh;
}

.section-with-fixed-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: navajowhite;
    background: linear-gradient(to bottom right, white, white, white, white, #a6fff4);
    z-index: -1;
}

.introduction {
    display: flex;
    flex-direction: row;
    gap: var(--gap-flex);;
    justify-content: space-between;
    padding: var(--nav-paddings);
}

.about-me {
    flex-grow: 1;
}

.heading {
    font-family: 'SpaceGrotesk', serif;
    font-size: 60px;
    font-weight: 400;
    letter-spacing: -0.2rem;
    color: #050E3C;
    line-height: 1.2;
    margin-bottom: var(--gap-flex);
}

.about-me-text {
    font-family: 'SpaceGrotesk', serif;
    font-size: 24px;
    font-weight: 300;
    color: #050E3C;
    line-height: 2;
    max-width: 700px;
}

.hs-link {
    text-decoration: none;
    border-bottom: 2px solid #66FCF1;
    color: #050E3C;
    cursor: pointer;
}

.tech-stack {
    width: 500px;
}

.glass-box {
    background: rgba(5, 14, 60, 0.23);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4.8px);
    -webkit-backdrop-filter: blur(4.8px);
    border: 1px solid rgba(5, 14, 60, 0.38);
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: var(--gap-flex);
    z-index: 2;
}

.word-box {
    font-family: 'SpaceGrotesk', serif;
    font-size: 45px;
    color: #050E3C;
    font-weight: 300;
    width: 350px;
    height: 75px;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#word {
    opacity: 1;
    position: relative;
    transform: none;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-flex);
    justify-content: center;
    margin-left: var(--nav-paddings);
    margin-right: var(--nav-paddings);
}

.projects {
    display: flex;
    gap: 0;
    flex-direction: row;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2.9px);
    -webkit-backdrop-filter: blur(2.9px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
    width: 100%;
    margin-bottom: 100px;
}

.project-elem {
    flex: 1;
    padding: 10px 30px;
    border-right: 1px solid #444;
}

.project-elem {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.project-elem:hover {
    border-color: #66FCF1;
    box-shadow: 0 10px 40px rgba(102, 252, 241, 0.2);
}

.project-elem:active {
    border-color: #66FCF1;
    box-shadow: 0 10px 40px rgba(102, 252, 241, 0.2);
}

.project-elem:active {
    border-color: #66FCF1;
    box-shadow: 0 10px 40px rgba(102, 252, 241, 0.2);
}

.project-title {
    font-family: 'SpaceGrotesk', serif;
    font-size: 32px;
    font-weight: 400;
    color: #050E3C;
    margin-bottom: 5px;
}

.project-status {
    display: inline-block;
    font-family: 'SpaceGrotesk', serif;
    width: fit-content;
    padding: 6px 12px;
    background: rgba(102, 252, 241, 0.2);
    color: #050E3C;
    border: 1px solid #66FCF1;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 300;
}

.project-description {
    font-family: 'SpaceGrotesk', serif;
    color: #050E3C;
    font-size: 24px;
    line-height: 2;
    margin: 10px 0;
    font-weight: 300;
}

.project-technologies {
    font-family: 'SpaceGrotesk', serif;
    color: #66FCF1;
    font-size: 16px;
    font-weight: 300;
}

.project-link {
    margin-top: auto;
    padding-top: 15px;
    font-size: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-link {
    font-family: 'SpaceGrotesk', serif;
    color: #050E3C;
    text-decoration: none;
    font-weight: 300;
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-link:hover {
    transform: translateX(5px);
}

.btn-link:active {
    transform: translateX(5px);
}
dialog {
    outline: none;
    border: none;
    padding: 0;
    border-radius: 0 0 5px 5px;
    width: 100%;
    max-width: 700px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(5, 14, 60, 0.18);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

dialog::backdrop {
    background: rgba(5, 14, 60, 0.5);
    backdrop-filter: blur(6px);
}

/* ─── Inner ───────────────────────────────────────── */
.dialog-inner {
    outline: none;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ─── Close ───────────────────────────────────────── */
.dialog-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: rgba(5, 14, 60, 0.35);
    transition: color 0.2s ease;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

button.dialog-close {
    display: inline-block;
    width: auto;
    height: auto;
    color: #66FCF1;
}

/* ─── Preview ─────────────────────────────────────── */
.dialog-preview {
    outline: none;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    background: #f0f4ff;
}

.dialog-preview video {
    width: 100%;
    outline: none;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dialog-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* ─── Body ────────────────────────────────────────── */
.dialog-body {
    padding: 28px 32px 0;
}

.dialog-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.dialog-body p {
    font-family: 'SpaceGrotesk', serif;
    font-size: 17px;
    font-weight: 300;
    color: rgba(5, 14, 60, 0.75);
    line-height: 1.65;
    margin: 0 0 10px;
}

.dialog-stack {
    font-family: 'SpaceGrotesk', serif;
    font-size: 13px;
    color: #00c8c8 !important;
    font-weight: 400;
}

/* ─── Footer ──────────────────────────────────────── */
.dialog-footer {
    padding: 20px 32px 28px;
    border-top: 1px solid rgba(5, 14, 60, 0.08);
    margin-top: 20px;
}

/* ─── Mobile ──────────────────────────────────────── */
@media (max-width: 600px) {
    dialog {
        max-width: calc(100% - 24px);
    }

    .dialog-body { padding: 20px 20px 0; }
    .dialog-footer { padding: 16px 20px 22px; }
    .dialog-header { flex-wrap: wrap; gap: 10px; }
}

/* ===== PROFESSIONAL SECTION ===== */
.professional-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-flex);
    justify-content: flex-start;
    margin-left: var(--nav-paddings);
    margin-right: var(--nav-paddings);
    margin-bottom: 100px;
}

.professional-section-cards {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
}

.exp {
    min-width: 500px;
}

.date {
    font-family: 'SpaceGrotesk', serif;
    color: #050E3C;
    font-size: 16px;
    font-weight: 400;
    margin-top: auto;
}

.location {
    font-family: 'SpaceGrotesk', serif;
    color: #050E3C;
    font-size: 16px;
    font-weight: 400;
    margin-top: auto;
}

/* ===== EDUCATION SECTION ===== */
.education-section {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: var(--gap-flex);
    margin-left: var(--nav-paddings);
    margin-right: var(--nav-paddings);
    margin-bottom: 100px;
}

.education-cards {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.education-card {
    width: 100%;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.education-card:hover {
    border-color: #66FCF1;
    box-shadow: 0 10px 40px rgba(102, 252, 241, 0.2);
}

.education-card:active {
    border-color: #66FCF1;
    box-shadow: 0 10px 40px rgba(102, 252, 241, 0.2);
}

.institution-name {
    font-family: 'SpaceGrotesk', serif;
    font-size: 32px;
    color: #050E3C;
    margin-bottom: 16px;
    font-weight: 400;
}

.degree {
    font-family: 'SpaceGrotesk', serif;
    font-size: 24px;
    color: #050E3C;
    margin-bottom: 8px;
    font-weight: 300;
}

.location-education {
    font-family: 'SpaceGrotesk', serif;
    color: #050E3C;
    font-size: 16px;
    font-weight: 400;
    margin-top: auto;
    padding-bottom: 15px;
}

.duration {
    font-family: 'SpaceGrotesk', serif;
    color: #050E3C;
    font-size: 16px;
    font-weight: 400;
    margin-top: auto;
}

.grade {
    display: inline-block;
    font-family: 'SpaceGrotesk', serif;
    width: fit-content;
    padding: 6px 12px;
    background: rgba(102, 252, 241, 0.2);
    color: #050E3C;
    border: 1px solid #66FCF1;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 300;
    margin-top: 16px;
}

.period {
    font-family: 'SpaceGrotesk', serif;
    color: #050E3C;
    font-size: 16px;
    font-weight: 300;
}

/* ===== FOOTER ===== */
.footer {
    width: 100%;
    background: rgba(5, 14, 60, 0.23);
    border-radius: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4.8px);
    -webkit-backdrop-filter: blur(4.8px);
    border: none;
    border-top: 1px solid rgba(5, 14, 60, 0.38);
    padding: 0 var(--nav-paddings);
    padding-top: 20px;
    overflow: hidden;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(5, 14, 60, 0.38);
}

.footer-heading {
    font-family: 'SpaceGrotesk', serif;
    font-size: 32px;
    font-weight: 400;
    color: #050E3C;
    transition: color 0.3s ease;
}

.footer-heading::before {
    content: attr(data-hover);
    position: absolute;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    white-space: nowrap;
}

.footer-heading:hover {
    color: transparent;
}

.footer-heading:hover::before {
    opacity: 1;
    transform: translateY(0);
    color: #050E3C;
}

.connect-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding-right: var(--nav-paddings);
}

.connect-link {
    font-family: 'SpaceGrotesk', serif;
    color: #050E3C;
    text-decoration: none;
    font-size: 24px;
    font-weight: 300;
    transition: color 0.3s ease;
}

.connect-link:hover {
    color: #66FCF1;
}

.rights {
    font-family: 'SpaceGrotesk', serif;
    font-size: 16px;
    color: #050E3C;
    font-weight: 300;
    margin-top: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.custom-cursor {
    width: 10px;
    height: 10px;
    background: #66FCF1;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999999999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px rgba(102, 252, 241, 0.8);
    transition: width 0.3s, height 0.3s;
}

.cursor-hint {
    position: fixed;
    top: 0;
    left: 0;
    padding: 8px 16px;
    background: rgba(102, 252, 241, 0.13);
    border: 2px solid #66FCF1;
    color: #66FCF1;
    font-family: 'SpaceGrotesk', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    border-radius: 8px;
    pointer-events: none;
    z-index: 9999999998;

    transform: translate(7px, -40px);

    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 252, 241, 0.4);
}

.cursor-hint.visible {
    visibility: visible;
    opacity: 1;
}

.cursor-hint.visible {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(102, 252, 241, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 252, 241, 0.8);
    }
}

body {
    cursor: auto;
}

@media (pointer: coarse) {
    .custom-cursor,
    .cursor-hint {
        display: none ! important;
    }
}

@media (max-width: 1280px) {
    :root {
        --nav-height: 130px;
        --navigation-height: 55px;
        --nav-paddings: 30px;
        --nav-container-paddings: 40px;
        --gap-flex: 2.5vh;
    }

    .navigation {
        padding-top: 20px;
    }

    .hero-title {
        text-align: left;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        text-align: left;
    }

    .introduction {
        flex-direction: column;
        gap: 100px;
        margin-bottom: 100px;
    }

    .projects-section {
        align-items: flex-start;
    }

    .projects {
        flex-wrap: wrap;
    }

    .project-elem {
        flex: 1;
        min-width: 40%;
    }

    .professional-section {
        align-items: flex-start;
    }

    .education-section {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .heading {
        font-size: 48px;
    }

    .about-me-text {
        font-size: 20px;
    }

    .tech-stack {
        width: 100%;
    }

    .word {
        font-size: 48px;
    }

    .glass-box {
        width: 100%;
    }

    .word-box {
        width: 100%;
        padding-left: var(--nav-paddings);
        padding-right: var(--nav-paddings);
    }

    .project-elem {
        flex: 1;
        min-width: 60%;
    }

    .project-title {
        font-size: 28px;
    }

    .project-status {
        font-size: 14px;
    }

    .project-description {
        font-size: 20px;
    }

    .degree {
        font-size: 20px;
    }

    .institution-name {
        font-size: 28px;
    }

    .grade {
        font-size: 14px;
    }

    .footer-heading {
        font-size: 28px;
    }

    .connect-link {
        font-size: 20px;
    }

    .rights {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    :root {
        --nav-height: 90px;
        --navigation-height: 55px;
        --nav-paddings: 10px;
        --nav-container-paddings: 40px;
        --gap-flex: 2.5vh;
    }

    .navigation {
        padding-top: 10px;
    }

    .nav-container {
        height: 50px;
        padding: 0 10px;
    }

    .nav-hero {
        font-size: 20px;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-menu li {
        font-size: 16px;
    }

    .hero-title {
        font-size: 48px;
        text-align: left;
    }

    .heading {
        font-size: 32px;
        letter-spacing: -0.1rem;
    }

    .about-me-text {
        font-size: 16px;
    }

    .tech-stack {
        width: 100%;
    }

    .word-box {
        height: 100%;
    }

    .word {
        font-size: 32px;
    }

    .glass-box {
        width: 100%;
    }

    .word-box {
        width: 100%;
        padding-left: var(--nav-paddings);
        padding-right: var(--nav-paddings);
    }

    .project-elem {
        flex: 1;
        min-width: 60%;
    }

    .project-title {
        font-size: 24px;
    }

    .project-status {
        font-size: 14px;
    }

    .project-description {
        font-size: 18px;
    }

    .project-technologies {
        font-size: 14px;
    }

    .project-link {
        font-size: 14px;
    }

    .project-elem.exp {
        padding: 0;
        margin-bottom: 30px;
    }

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

    .degree {
        font-size: 18px;
    }

    .institution-name {
        font-size: 24px;
    }

    .grade {
        font-size: 14px;
    }

    .footer-heading {
        font-size: 28px;
    }

    .connect-link {
        font-size: 20px;
    }

    .rights {
        font-size: 14px;
    }

    .location {
        font-size: 14px;
    }

    .period {
        font-size: 14px;
    }

    .date {
        font-size: 14px;
    }

    .footer-heading {
        font-size: 20px;
    }

    .connect-link {
        font-size: 16px;
    }

    .rights {
        font-size: 12px;
    }
}

@media (max-width: 400px) {

    .hero-title {
        font-size: 40px;
    }

    .hero-text {
        border-bottom: 2.5px solid #66FCF1;
    }
}



