html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

*,
*::after,
*::before {
    box-sizing: border-box
}

@font-face {
    font-family: "FK Grotesk Neue";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/fk-grotesk-neue-regular.woff2") format("woff2"), url("../fonts/fk-grotesk-neue-regular.woff") format("woff")
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

html.is-transitioning {
    pointer-events: none !important
}

html.is-transitioning * {
    pointer-events: none !important
}

html.no-overflow {
    overflow: hidden !important;
}

body {
    line-height: 1;
    color: white;
}

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

button,
input,
select,
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    outline: none;
    padding: 0
}

button {
    cursor: pointer
}

ol,
ul {
    list-style: none
}

blockquote,
q {
    quotes: none
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

canvas {
    left: 0;
    position: fixed;
    top: 0;
    transform: translateZ(0)
}

html.lenis,
html.lenis body {
    height: auto
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain
}

.lenis.lenis-stopped {
    overflow: hidden
}

.lenis.lenis-scrolling iframe {
    pointer-events: none
}

.project__media__image,
.about__media__image {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%
}

body {
    background: #000;
    color: #fff
}

canvas {
    pointer-events: none
}

@media(max-width: 768px) {
    canvas {
        visibility: hidden
    }
}

html {
    font-family: "FK Grotesk Neue";
    font-size: .5208333333vw;
}

@media(max-width: 768px) {
    html {
        font-size: 3.125vw
    }
}

img:not([src]),
video:not([src]) {
    visibility: hidden
}

@media(min-width: 769px) {
    [data-gl-media][data-gl-media-active] {
        opacity: 0
    }
}

@media(min-width: 769px) {
    [data-gl-text][data-gl-text-active] {
        color: rgba(0, 0, 0, 0)
    }
}

::-webkit-scrollbar {
    width: 1px
}

::-webkit-scrollbar-track {
    background: #000
}

::-webkit-scrollbar-thumb {
    background: #fff
}

::-moz-selection {
    color: #000;
    background: #fff
}

::selection {
    color: #000;
    background: #fff
}

.Home::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../imgs/home-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: invert(1) grayscale(0) contrast(.8) brightness(1) opacity(0.5);
}

.Contact::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../imgs/home-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: invert(1) grayscale(0) contrast(.8) brightness(1) opacity(0.3);
}

.Projects::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../imgs/projects-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: opacity(0.6) contrast(0.8);
}

.header {
    font-size: 1.8rem;
    height: 100vh;
    height: 100svh;
    position: relative;
    text-transform: uppercase;
    width: 100%
}

@media(max-width: 768px) {
    .header {
        font-size: 1rem
    }
}

.headerWrapper {
    display: flex;
    justify-content: space-between;
    left: 2.5rem;
    position: absolute;
    top: 2.5rem;
    width: calc(100% - 5rem)
}

@media(max-width: 768px) {
    .headerWrapper {
        border: 1px solid;
        border-radius: 5px;
        flex-direction: column;
        gap: 1.5rem;
        height: calc(100% - 2rem);
        justify-content: flex-start;
        left: 13rem;
        padding: 1rem;
        top: 1rem;
        width: calc(100% - 14rem)
    }
}

@media(max-width: 768px) {
    .headerCol:last-child {
        bottom: -0.5rem;
        left: 1rem;
        position: absolute
    }
}

.headerTitle {
    font-size: 5rem;
    letter-spacing: -0.25rem;
    padding-right: 2rem
}

@media(max-width: 768px) {
    .headerTitle {
        font-size: 3rem;
        letter-spacing: -0.15rem;
        padding-right: .15rem
    }
}

.headerYear {
    font-size: 8rem;
    letter-spacing: -0.25rem;
    margin-top: 10rem;
    padding-right: .25rem
}

@media(max-width: 768px) {
    .headerYear {
        bottom: .5rem;
        font-size: 5rem;
        position: absolute;
        right: 1rem
    }
}

.header__shape {
    font-size: 4.2rem;
    letter-spacing: -0.1rem;
    margin-top: -0.45rem;
    padding-right: .1rem
}

@media(max-width: 768px) {
    .header__shape {
        font-size: 11.3rem
    }
}

.headerLogo {
    aspect-ratio: 2940/567;
    bottom: 0;
    margin-bottom: 20svh;
    font-size: 0;
    left: 2.5rem;
    position: absolute;
    width: calc(50svw - 5rem);
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: left;
    justify-content: center;
}

@media (max-width: 768px) {
    .headerLogo {
        visibility: hidden;
    }
}

.footHeader {
    display: flex;
    flex-direction: row;
    justify-content: left;
    width: calc(100svw - 5rem);
    height: auto;
    position: absolute;
    column-gap: 1rem;
    column-fill: auto;
    bottom: 2.5rem;
    z-index: 1000;
}

@media (max-width: 768px) {
    .footHeader {
        transform: rotate(90deg) translateX(-30vh) translateY(-85%) scale(.8);
        transform-origin: bottom left;
    }
}

.footHeader h4 {
    font-size: 3rem;
    align-content: center;
}

.numerilloText {
    font-size: 7rem !important;
    padding: 1rem !important;
    border: 1px solid rgba(255, 255, 255, .5);
}

@media(max-width: 768px) {
    .headerLogo {
        bottom: 3rem;
        left: 1rem;
        max-height: 20rem;
        transform: rotate(90deg) translateX(-100%);
        transform-origin: bottom left;
        width: calc(100svh - 2rem)
    }
}

.headerLogoMedia {
    -o-object-fit: cover;
    object-fit: cover;
}

@media(max-width: 768px) {
    .headerLogoMedia {
        -o-object-fit: contain;
        object-fit: contain;
    }
}

.nav {
    position: fixed;
    top: 0;
    right: 5vw;
    width: auto;
    height: 100%;
    background-color: transparent;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding-bottom: 10vh;
}

@media (max-width: 768px) {
    .nav {
        left: 3vw;
        right: auto;
    }
}

.navWrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.navWrapper .navItem {
    font-family: "FK Grotesk Neue";
    font-style: normal;
    font-weight: 400;
    position: relative;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 15px;
    width: 100%;
    text-align: right;
    transition: all 0.4s ease;
    display: flex;
    justify-content: right;
    align-items: right;
    margin: 1rem;
    will-change: transform, color;
    transform: translateZ(0);
}

@media (max-width: 768px) {
    .navWrapper .navItem {
        align-items: left !important;
        justify-content: left !important;
        font-size: 1rem !important;
    }
}

.navWrapper .navItem:hover {
    color: white;
}

.navWrapper .navItem.active {
    color: white;
    transform: translateX(-40px);
}

@media (max-width: 768px) {
    .navWrapper .navItem.active {
        transform: translateX(20px);
    }
}

.progress-indicator {
  width: 160px;
  height: 1px;
  margin: 2vh auto 0;
  position: relative;
  background-color: rgba(245, 245, 245, 0.3);
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 20%;
  background-color: white;
  transition: width 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.progress-numbers {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-color);
  font-family: var(--font-primary);
  letter-spacing: -0.02em;
  transform: translateY(-50%);
  margin: 0 -25px;
}

 #pre-load{
     background:#000;
     position:fixed;
     inset:0;
     display:flex;
     align-items:center;
     justify-content:center;
     z-index:999999 
}
 #pre-load .loader-inner{
     --loader-background:linear-gradient(0deg,rgba(50,50,50,.2) 0%,rgba(100,100,100,.2) 100%);
     position:relative;
     height:250px;
     aspect-ratio:1;
     display:flex;
     align-items:center;
     justify-content:center 
}
 #pre-load .loader-inner .loader-logo{
     position:absolute;
     top:50%;
     left:50%;
     transform:translate(-50%,-50%);
     width:60px;
     height:60px;
     display:flex;
     align-items:center;
     justify-content:center;
     animation:color-change 2s infinite ease-in-out;
     z-index:999 
}
 #pre-load .loader-inner .loader-logo svg{
    width:100%;
    height:100%
}
 #pre-load .loader-inner .box{
     position:absolute;
     background:var(--loader-background);
     border-radius:50%;
     border-top:1px solid rgb(100,100,100);
     box-shadow:rgba(0,0,0,.3) 0 10px 10px 0;
     backdrop-filter:blur(5px);
     animation:ripple 2s infinite ease-in-out 
}
 #pre-load .loader-inner .box:nth-child(1){
    width:25%;
    aspect-ratio:1/1;
    z-index:99
}
 #pre-load .loader-inner .box:nth-child(2){
    inset:30%;
    z-index:98;
    border-color:rgba(100,100,100,.8);
    animation-delay:.2s
}
 #pre-load .loader-inner .box:nth-child(3){
    inset:20%;
    z-index:97;
    border-color:rgba(100,100,100,.6);
    animation-delay:.4s
}
 #pre-load .loader-inner .box:nth-child(4){
    inset:10%;
    z-index:96;
    border-color:rgba(100,100,100,.4);
    animation-delay:.6s
}
 #pre-load .loader-inner .box:nth-child(5){
    inset:0;
    z-index:95;
    border-color:rgba(100,100,100,.2);
    animation-delay:.8s
}
 @keyframes ripple{
     0%{
        transform:scale(1);
        box-shadow:rgba(0,0,0,.3) 0 10px 10px 0
    }
     50%{
        transform:scale(1.3);
        box-shadow:rgba(0,0,0,.3) 0 30px 20px 0
    }
     100%{
        transform:scale(1);
        box-shadow:rgba(0,0,0,.3) 0 10px 10px 0
    }
}
 @keyframes color-change{
     0%{
        opacity:.7
    }
     50%{
        opacity:1
    }
     100%{
        opacity:.7
    }
}

.Slide {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: visibility 0s, opacity 0.5s ease-in-out;
    z-index: 1;
    will-change: transform, opacity;
    backface-visibility: hidden;
    contain: layout style paint;
}

.activeSl {
    visibility: visible;
}

@keyframes activeOutUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
        visibility: hidden;
    }
}

@keyframes activeOutDown {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100%);
        visibility: hidden;
    }
}

@keyframes commingInUp {
    0% {
        transform: translateY(100%);
        visibility: visible;
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes commingInDown {
    0% {
        transform: translateY(-100%);
        visibility: visible;
    }
    100% {
        transform: translateY(0);
    }
}

/* Elegant Brutalist About Page */
.About::before {
    content: "";
    position: fixed;
    inset: 0;
    background: #000;
}

/* Enable scrolling only on About page for mobile */
@media (max-width: 768px) {
    .About {
        overflow-y: auto;
        overflow-x: hidden;
        height: 100vh;
        position: relative;
        /* Ensure content starts from the very top */
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 0;
    }
    
    /* Disable scrolling on other slides */
    .Home, .Contact, .Projects, .Blog {
        overflow: hidden;
    }
}

.about-container-elegant {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.about-grid-elegant {
    display: grid;
    grid-template-columns: 1fr 2fr 300px;
    grid-template-rows: auto 1fr auto;
    grid-gap: 4rem 3rem;
    max-width: 1400px;
    width: 100%;
    height: 80vh;
    grid-template-areas: 
        "header main sidebar"
        "header main sidebar"
        "footer footer sidebar";
}

@media (max-width: 1024px) {
    .about-grid-elegant {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "header sidebar"
            "main main"
            "footer footer";
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .about-container-elegant {
        height: auto;
        min-height: 100vh;
        padding: 3rem 1rem 4rem 7rem;
        align-items: flex-start;
        justify-content: flex-start;
        box-sizing: border-box;
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }    
    .about-grid-elegant {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "header"
            "sidebar"
            "main"
            "footer";
        gap: 2rem;
        height: auto;
        width: 100%;
        max-width: calc(100vw - 8rem);
        box-sizing: border-box;
        margin-top: 0;
        padding-top: 0;
    }
}

/* Header Section */
.about-header-elegant {
    grid-area: header;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 3rem;
}

@media (max-width: 1024px) {
    .about-header-elegant {
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .about-header-elegant {
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 1.5rem;
        text-align: left;
    }
}

.name-section {
    text-align: left;
}

@media (max-width: 768px) {
    .name-section {
        text-align: left;
    }
}

.elegant-name {
    font-size: 5rem;
    font-weight: 300;
    color: #fff;
    line-height: 0.9;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
    font-family: "FK Grotesk Neue", sans-serif;
}

@media (max-width: 768px) {
    .elegant-name {
        font-size: 3.5rem;
    }
}

.elegant-divider {
    width: 80px;
    height: 2px;
    background: #fff;
    margin: 0;
}

.elegant-handle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin: 1rem 0 0 0;
    font-family: monospace;
}

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

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

.elegant-title {
    font-size: 2rem;
    font-weight: 500;
    color: #fff;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.elegant-location {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-weight: 300;
}

/* Main Content */
.about-main-elegant {
    grid-area: main;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.section-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.bio-content {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2rem 0;
    font-weight: 300;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.stat-item {
    text-align: left;
}

@media (max-width: 768px) {
    .stat-item {
        text-align: left;
    }
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* Languages Section */
.languages-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    width: 100%;
    box-sizing: border-box;
}

.lang-item {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.7rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: default;
    font-family: monospace;
    box-sizing: border-box;
    word-break: keep-all;
    white-space: nowrap;
}

.lang-item.primary {
    background: #fff;
    color: #000;
    border-color: #fff;
    font-weight: 500;
}

.lang-item:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-1px);
}

/* Technology Categories */
.tech-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tech-category {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.tech-category:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    width: 100%;
    box-sizing: border-box;
}

.tech-item {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: default;
    box-sizing: border-box;
    word-break: keep-all;
    white-space: nowrap;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* Sidebar */
.profile-sidebar-elegant {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    text-align: center;
}

@media (max-width: 1024px) {
    .profile-sidebar-elegant {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .profile-sidebar-elegant {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 1.5rem;
        width: 100%;
        /* Ensure sidebar content is visible and well-spaced */
        margin-bottom: 1rem;
    }
}

.profile-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-square {
    width: 120px;
    height: 120px;
    background: transparent;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.profile-square:hover {
    background: #fff;
    color: #000;
    transform: rotate(2deg) scale(1.02);
}

.profile-initials {
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    transition: color 0.3s ease;
}

.profile-square:hover .profile-initials {
    color: #000;
}

.profile-accent {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
}

/* GitHub Activity Heatmap */
.github-activity {
    width: 100%;
    max-width: 280px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .github-activity {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .github-activity {
        max-width: 100%;
        width: 100%;
        order: -1; /* Move GitHub activity to the top on mobile */
        margin-bottom: 1rem;
    }
    
    .profile-visual {
        align-self: center;
        margin-bottom: 1rem;
    }
    
    .profile-square {
        width: 100px;
        height: 100px;
    }
    
    .profile-initials {
        font-size: 2rem;
    }
    
    .profile-accent {
        width: 100px;
        height: 100px;
        top: 8px;
        right: 8px;
    }
}

.activity-heatmap {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 2px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    column-gap: 1px;
    row-gap: 2px;
    margin-bottom: 1rem;
}

.activity-day {
    width: 14px;
    height: 14px;
    border-radius: 1px;
    transition: all 0.2s ease;
    cursor: default;
}

.activity-day:hover {
    transform: scale(1.2);
}

.activity-day.level-0 {
    background: rgba(255, 255, 255, 0.1);
}

.activity-day.level-1 {
    background: rgba(255, 255, 255, 0.25);
}

.activity-day.level-2 {
    background: rgba(255, 255, 255, 0.4);
}

.activity-day.level-3 {
    background: rgba(255, 255, 255, 0.6);
}

.activity-day.level-4 {
    background: rgba(255, 255, 255, 0.8);
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.legend-squares {
    display: flex;
    gap: 2px;
}

.legend-square {
    width: 10px;
    height: 10px;
    border-radius: 1px;
}

.legend-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

@media (max-width: 1024px) {
    .contact-info {
        align-self: flex-end;
        width: auto;
    }
}

@media (max-width: 768px) {
    .contact-info {
        align-self: flex-start;
        width: 100%;
        text-align: left;
    }
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-value {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: monospace;
}

/* Footer */
.about-footer-elegant {
    grid-area: footer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
}

@media (max-width: 768px) {
    .about-footer-elegant {
        justify-content: flex-start;
        text-align: left;
    }
}

.philosophy-elegant {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin: 0;
    position: relative;
}

.philosophy-elegant::before {
    content: '"';
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    left: -2rem;
    top: -0.5rem;
}

.philosophy-elegant::after {
    content: '"';
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Background Elements */
.geometric-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.geo-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
}

.line-1 {
    width: 1px;
    height: 40vh;
    top: 20%;
    left: 20%;
    animation: subtle-float 12s infinite ease-in-out;
}

.line-2 {
    width: 30vw;
    height: 1px;
    bottom: 30%;
    right: 10%;
    animation: subtle-float 15s infinite ease-in-out reverse;
}

.geo-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.dot-1 {
    top: 25%;
    right: 25%;
    animation: pulse-dot 4s infinite ease-in-out;
}

.dot-2 {
    bottom: 40%;
    left: 15%;
    animation: pulse-dot 6s infinite ease-in-out reverse;
}

/* Animations */
@keyframes subtle-float {
    0%, 100% {
        opacity: 0.05;
        transform: translateY(0);
    }
    50% {
        opacity: 0.15;
        transform: translateY(-10px);
    }
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.5);
    }
}

/* Entry Animation */
.about-grid-elegant > * {
    animation: elegant-enter 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.about-header-elegant {
    animation-delay: 0.1s;
}

.about-main-elegant {
    animation-delay: 0.2s;
}

.profile-sidebar-elegant {
    animation-delay: 0.3s;
}

.about-footer-elegant {
    animation-delay: 0.4s;
}

@keyframes elegant-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PROJECTS SECTION - BRUTALIST FUTURISTIC GRID */
.projects-container {
    width: 100%;
    height: 100vh;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .projects-container {
        height: auto;
        min-height: 100vh;
        padding: 3rem 0.5rem 2rem 7rem;
        justify-content: center;
        align-items: center;
        max-width: calc(100vw - 7.5rem);
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }
}
.projects-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .projects-header {
        margin-bottom: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        text-align: left;
    }
}
.projects-title {
    font-size: 4rem;
    font-weight: 300;
    color: #fff;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: "FK Grotesk Neue", sans-serif;
    position: relative;
}

@media (max-width: 768px) {
    .projects-title {
        font-size: 2rem;
    }
}

.projects-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 2px;
    background: #fff;
}

@media (max-width: 768px) {
    .projects-title::after {
        left: 0;
        right: auto;
    }
}

.projects-count {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: monospace;
    font-weight: 300;
}

.count-current {
    color: #fff;
    font-weight: 500;
}

.count-separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    margin-bottom: 4rem;
}

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

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
}
.project-card {
    position: relative;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease-in-out;
    z-index: 1;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-card:hover .project-arrow {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.project-card:hover .project-number {
    transform: scale(0.8);
    opacity: 0.3;
}

.project-card:hover .project-info {
    transform: translateY(-5px);
}

.project-visual {
    position: relative;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.project-number {
    font-size: 4rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.15);
    font-family: "FK Grotesk Neue", sans-serif;
    transition: all 0.4s ease;
    user-select: none;
}

.project-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.project-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.project-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.project-tech {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: monospace;
    font-weight: 400;
}

.project-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.4;
    font-weight: 300;
}

.project-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    text-decoration: none;
    color: transparent;
}

.projects-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

@media (max-width: 768px) {
    .projects-footer {
        justify-content: flex-start;
    }
}

.github-link-wrapper {
    position: relative;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.github-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: left 0.4s ease;
    z-index: -1;
}

.github-link:hover::before {
    left: 0;
}

.github-link:hover {
    color: #000;
    border-color: #fff;
    transform: translateY(-2px);
}

.github-link svg {
    transition: transform 0.3s ease;
}

.github-link:hover svg {
    transform: rotate(45deg);
}

/* Staggered entrance animation */
.project-card {
    opacity: 0;
    transform: translateY(30px);
    animation: project-enter 0.6s ease-out forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes project-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glitch effect for project numbers */
.project-card:hover .project-number {
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
    0%, 100% {
        transform: scale(0.8);
        filter: hue-rotate(0deg);
    }
    20% {
        transform: scale(0.82) skew(2deg);
        filter: hue-rotate(90deg);
    }
    40% {
        transform: scale(0.78) skew(-1deg);
        filter: hue-rotate(180deg);
    }
    60% {
        transform: scale(0.83) skew(1deg);
        filter: hue-rotate(270deg);
    }
    80% {
        transform: scale(0.79) skew(-2deg);
        filter: hue-rotate(360deg);
    }
}

@media (max-width: 768px) {
    .project-card {
        min-height: 80px;
        border-radius: 4px;
    }
    
    .project-visual {
        height: 35px;
    }
    
    .project-number {
        font-size: 1.2rem;
    }
    
    .project-info {
        padding: 0.6rem;
    }
    
    .project-name {
        font-size: 0.85rem;
        margin-bottom: 0.1rem;
        line-height: 1.1;
    }
    
    .project-tech {
        font-size: 0.6rem;
        margin-bottom: 0;
        line-height: 1.1;
    }
    
    .project-desc {
        display: none;
    }
    
    /* Simplify mobile hover effects */
    .project-card:hover {
        transform: translateY(-2px) scale(1);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }
}.project-card:nth-child(odd)::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    background: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:nth-child(odd):hover::after {
    opacity: 1;
}

.project-card:nth-child(even)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: -1px;
    width: 20px;
    height: 20px;
    background: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:nth-child(even):hover::after {
    opacity: 1;
}

/* Mobile-specific project card improvements */
@media (max-width: 768px) {
    .project-card {
        min-height: 80px;
        border-radius: 4px;
    }
    
    .project-visual {
        height: 35px;
    }
    
    .project-number {
        font-size: 1.2rem;
    }
    
    .project-info {
        padding: 0.6rem;
    }
    
    .project-name {
        font-size: 0.85rem;
        margin-bottom: 0.1rem;
        line-height: 1.1;
    }
    
    .project-tech {
        font-size: 0.6rem;
        margin-bottom: 0;
        line-height: 1.1;
    }
    
    .project-desc {
        display: none;
    }
    
    /* Simplify mobile hover effects */
    .project-card:hover {
        transform: translateY(-2px) scale(1) !important;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
    }
}