/* ----------------------------
   1. Global & Utility Styles (from about.css)
---------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Gilroy", sans-serif, Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

.banner {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#dotsCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.pageOne {
    position: relative;
    z-index: 1;
    padding: 0 important;
}

@font-face {
    font-family: "Gilroy";
    src: url("fonts/Gilroy-Light.otf");
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: "Gilroy H";
    src: url("fonts/Gilroy-ExtraBold.otf");
}

body {
    font-family: "Gilroy", sans-serif, Arial, Helvetica, sans-serif;
    background: #fff;
}

.Work,
.second-page,
.third-page,
.last-page,
.About {
    padding: 1.5rem;
}

::selection {
    background-color: black;
    color: white;
}

/* ----------------------------
   2. Navigation & Mouse Follower
---------------------------- */
.mouse-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    opacity: 0.3;
    background: black;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.02s ease-out;
}


.nav-item {
    position: relative;
    background: transparent;
    border: none;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #6b7280;
    outline: none;
    overflow: hidden;
}

.nav-item span {
    position: relative;
    z-index: 2;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
    transform: scale(1.05);
    color: #374151;
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-item.active {
    background-color: transparent;
    color: #111827;
    box-shadow: none;
}

.nav-item.active span {
    color: #111827;
}

/* Animation for active state transition */
.nav-item::before {
    display: none;
}

.nav-item.active::before {
    display: none;
}

/* Hover effect for inactive items */
.nav-item:not(.active):hover {
    background-color: transparent;
}

/* Focus styles for accessibility */
.nav-item:focus {
    outline-offset: 2px;
}


/* ----------------------------
    4. Second Page - What I Do
---------------------------- */
.second-page {
    height: 50vh;
    display: flex;
    justify-content: flex-end;
    padding-right: 5vw;
}

.second-content {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.About .second-content h1 {
    text-align: left;
}

.About>.second-page:nth-child(2) .second-content h1 {
    text-align: right;
}

.second-page h1 {
    font-size: 100px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 20px;
}

.second-page p {
    font-size: 30px;
    letter-spacing: 1px;
    font-family: Helvetica, sans-serif;
    /* margin-bottom: 80px; */
}

/* ----------------------------
   5. Third Page - Say Hello
---------------------------- */
.last-page h1 {
    font-weight: normal;
    font-size: 180px;
    display: flex;
    margin: auto;
    justify-content: center;
    align-items: center;
    margin-bottom: 150px;
}

.last-page a {
    color: black;
}

/* ----------------------------
   6. Project Filters (optional UI)
---------------------------- */
.project-filters {
    margin-bottom: 20px;
    display: flex;
    gap: 5rem;
}

.filter-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    /* cursor: none; */
    position: relative;
}

.filter-btn.active {
    font-weight: bold;
}

/* ----------------------------
   7. Responsive Media Queries
---------------------------- */

/* Tablets */
@media (max-width: 1024px) {

    /* Navigation adjustments */
    .top-nav {
        right: 30px !important;
    }

    .nav-item {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Hero section */
    .name {
        font-size: 3.5rem !important;
    }

    .hero-description {
        font-size: 1.1rem !important;
        max-width: 350px !important;
    }

    /* About section */
    .left h1 {
        font-size: 60px;
    }

    .left p {
        font-size: 20px;
        width: 90%;
        line-height: 1.5;
    }

    .second-page h1 {
        font-size: 60px;
    }

    .second-page p {
        font-size: 20px;
        width: 90%;
        line-height: 1.5;
    }

    .last-page h1 {
        font-size: 80px;
    }

    /* Projects */
    .grid-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .bottom-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Third page */
    .third-page h1 {
        font-size: 60px;
    }

    .project-filters {
        gap: 3rem;
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* Navigation adjustments */
    .top-nav {
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        left: 20px !important;
        display: flex;
        justify-content: space-between;
        background: transparent;
        border-radius: 25px;
        padding: 8px;
    }

    .nav-item {
        padding: 8px 16px;
        font-size: 12px;
    }

    /* Hero section adjustments */
    .name {
        font-size: 1.8rem !important;
        text-align: left !important;
    }

    .hero-description {
        font-size: 1rem !important;
        max-width: 300px !important;
        margin-top: 15px !important;
    }

    /* About section */
    .first-page {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1rem;
        height: auto;
    }

    .left,
    .right {
        width: 100%;
    }

    .left h1 {
        font-size: 30px;
        text-align: left;
        margin-bottom: 1rem;
    }

    .left p {
        font-size: 16px;
        width: 90%;
        margin: 0 auto;
        text-align: left;
        line-height: 1.6;
    }

    .right img {
        width: 100%;
        height: auto;
    }

    .second-page h1 {
        font-size: 40px;
        text-align: left;
        margin-bottom: 1rem;
    }

    .About>.second-page:nth-child(2) .second-content h1 {
        text-align: right;
    }

    .second-page p {
        font-size: 16px;
        width: 90%;
        margin: 0 auto;
        text-align: left;
        line-height: 1.6;
    }

    .last-page h1 {
        font-size: 60px;
        text-align: center;
    }

    /* Projects grid */
    .grid-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bottom-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .bottom-grid img {
        height: 150px;
    }

    /* Third page projects */
    .third-page {
        padding: 2rem 1rem;
    }

    .third-page h1 {
        font-size: 24px;
        text-align: left;
        margin-bottom: 1rem;
    }


    .filter-btn {
        font-size: 16px;
    }

    .project {
        padding: 1rem 0;
    }

    .project-title {
        font-size: 18px;
    }

    .project-description {
        display: none;
    }

    /* Make "What I do" visible in mobile */
    .About .second-page {
        display: block;
    }

    /* Improve touch targets */
    .nav-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .filter-btn {
        min-height: 44px;
        padding: 12px 20px;
    }

    /* Better spacing */
    .Work,
    .About,
    .third-page {
        padding: 1rem;
    }

    /* Improve project hover on touch devices */
    .project:hover {
        background-color: transparent;
        color: inherit;
        padding-left: 0;
    }

    .project:active {
        background-color: black;
        color: white;
        padding-left: 20px;
    }
}


WORK.CSS CONTENT STARTS HERE ---------------------------- */ * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Gilroy", sans-serif, Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: "Gilroy";
    src: url("fonts/Gilroy-Light.otf");
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: "Gilroy H";
    src: url("fonts/Gilroy-ExtraBold.otf");
}

.mouse-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    opacity: 0.3;
    background: black;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.02s ease-out;
}

/* The First Page */
.grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.left-large {
    grid-row: span 2;
}

.left-large {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.left-large img {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-out;
}

.hover-text {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: "Gilroy", sans-serif, Arial, Helvetica, sans-serif;
    font-weight: normal;
}

.left-large:hover img {
    transform: scale(1.1);
    transition: all 0.4s ease-out;
}

.left-large:hover .hover-text {
    opacity: 1;
}

.left-large:hover .hover-text {
    opacity: 1;
}

.grid-container img {
    width: 100%;
    display: block;
    border-radius: 1px;
    object-fit: cover;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    overflow: hidden;
}

.bottom-right {
    height: 390px;
    object-fit: cover;
}

.bottom-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1px;
    display: block;
    transition: transform 0.4s ease-out;
}

.bottom-grid img {
    transition: transform 0.4s ease-out;
}

.bottom-grid img:hover {
    transform: scale(1.1);
    transition: all 0.4s ease-out;
}

.effect {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.effect img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease-out;
}

.hover-text {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.effect:hover img {
    transform: scale(1.1);
}

.effect:hover .hover-text {
    opacity: 1;
}

.effect2 {
    position: relative;
    overflow: hidden;
    border-radius: 1px;
    height: 200px;
}

.effect2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
    display: block;
}

.effect2:hover img {
    transform: scale(1.1);
}

.hover-text2 {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    font-size: 2.9rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.effect2:hover .hover-text2 {
    opacity: 1;
}

/* Bottom Navigation Styles */
.bottom-nav-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.bottom-nav {
    background-color: #f3f4f6;
    border-radius: 0;
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bottom-nav a {
    text-decoration: none;
    color: black;
}

.nav-item {
    position: relative;
    background: transparent;
    border: none;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #6b7280;
    outline: none;
    overflow: hidden;
}

.nav-item span {
    position: relative;
    z-index: 2;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
    transform: scale(1.05);
    color: #374151;
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-item.active {
    background-color: transparent;
    color: #111827;
    box-shadow: none;
}

.nav-item.active span {
    color: #111827;
}

/* Animation for active state transition */
.nav-item::before {
    display: none;
}

.nav-item.active::before {
    display: none;
}

/* Hover effect for inactive items */
.nav-item:not(.active):hover {
    background-color: transparent;
}

/* Focus styles for accessibility */
.nav-item:focus {
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .bottom-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bottom-grid img {
        height: 150px;
    }
}

/* The Second Page */
.second-page {
    margin-top: 50px;
    width: 100%;
    height: 100%;
}

.second-page .left {
    margin: 0;
    justify-content: center;
    align-items: center;
}

.left h1 {
    font-size: 70px;
    margin-bottom: 30px;
    font-weight: 900;
}

.left p {
    margin-bottom: 40px;
    font-weight: 500;
}

.spa {
    border-radius: 35px;
    border: solid black 1px;
    padding: 10px 20px;
}

/* The Third Page */
.third-page {
    margin-top: 100px;
}

.third-page h1 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 40px;
    text-align: left;
}

/* The Last Page */
.last-page {
    width: 100%;
    font-size: clamp(1rem, 8vw, 100px);
    font-weight: 900;
    text-transform: uppercase;
    padding: 1rem;
    margin-bottom: 90px;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    /* animation removed for draggable functionality */
    will-change: transform;
}

.marquee-content {
    display: flex;
    gap: 1rem;
    white-space: nowrap;
    margin-right: 4rem;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.left,
.center,
.right {
    flex: 1;
    text-align: center;
    min-width: 100px;
}

.left {
    text-align: left;
}

.right {
    text-align: right;
}

@media (max-width: 600px) {
    .last-page {
        font-size: 2.5rem;
    }

    .marquee-track {
        animation-duration: 20s;
    }

    .marquee-content {
        gap: 0.5rem;
    }
}

/* Projects */
.project {
    padding: 1.8rem 0;
    border-top: 1px solid #e5e5e5;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.project:hover {
    background-color: black;
    color: white;
    padding-left: 20px;
    transition: all 0.5s ease-out;
}

.project-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-info {
    flex: 1;
}

.project-arrow {
    margin-left: auto;
    margin-right: 20px;
}

.project-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.25rem;
}

.project-title {
    font-weight: 500;
    font-size: 20px;
    font-family: "Gilroy", sans-serif, Arial, Helvetica, sans-serif;
}

.project-description {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-width: 400px;
    line-height: 1.4;
}

.project:hover .project-description {
    opacity: 1;
    transform: translateY(0);
    color: #ccc;
}

/* Hover underline effect */
.hover-underline {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.hover-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s;
}

.hover-underline:hover::after {
    width: 100%;
}

/* Selection */
::selection {
    background-color: black;
    color: white;
}

.project-filters {
    margin-bottom: 20px;
    display: flex;
    gap: 5rem;
}

.filter-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    position: relative;
}

/* Active button style (optional) */
.filter-btn.active {
    font-weight: bold;
}

.author p {
    font-size: 24px;
}

.banner {
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.banner .slider {
    margin-top: 80px;
    position: absolute;
    width: 200px;
    height: 250px;
    top: 10%;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autoRun 20s linear infinite;
    z-index: 2;
}

@keyframes autoRun {
    from {
        transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
    }

    to {
        transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
    }
}

.banner .slider .item {
    position: absolute;
    inset: 0 0 0 0;
    transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(550px);
}

.banner .slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner .content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.banner .content h1 {
    align-items: center;
    justify-content: center;
    display: flex;
    margin: auto;
    font-family: "Gilroy", sans-serif, Arial, Helvetica, sans-serif;
    font-size: 10em;
    line-height: 1em;
    color: #25283b;
    position: relative;
}

.banner .content h1::after {
    position: absolute;
    inset: 0 0 0 0;
    content: attr(data-content);
    z-index: 2;
    -webkit-text-stroke: 2px #d2d2d2;
    color: transparent;
}

.banner .content .author {
    font-family: "Gilroy", sans-serif, Arial, Helvetica, sans-serif;
    text-align: right;
    max-width: 200px;
}

.banner .content h2 {
    font-size: 3em;
}

.banner .content .model {
    width: 100%;
    height: 75vh;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: auto 130%;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 1;
}

@media screen and (max-width: 1023px) {
    .banner .slider {
        width: 160px;
        height: 200px;
        left: calc(50% - 80px);
    }

    .banner .slider .item {
        transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(300px);
    }

    .banner .content h1 {
        text-align: center;
        width: 100%;
        font-size: 7em;
    }

    .banner .content .author {
        color: #fff;
        padding: 20px;
        z-index: 2;
        max-width: unset;
        width: 100%;
        text-align: center;
        padding: 0 30px;
    }
}

@media screen and (max-width: 767px) {
    .banner .slider {
        width: 100px;
        height: 150px;
        left: calc(50% - 50px);
    }

    .banner .slider .item {
        transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(180px);
    }

    .banner .content h1 {
        font-size: 5em;
    }
}

/* Transition Block Styles */
.transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    pointer-events: none;
}

.transition-row {
    flex: 1;
    display: flex;
}

.transition-row.row-1 .block {
    transform-origin: top;
}

.transition-row.row-2 .block {
    transform-origin: bottom;
}

.block {
    transform-origin: top;
    flex: 1;
    background-color: black;
    transform: scaleY(1);
    will-change: transform;
    visibility: visible;
}

@media (max-width: 768px) {
    .second-page {
        display: none;
    }
}

@media (max-width: 768px) {

    .cursor,
    .mouse-follower {
        display: none !important;
    }
}

.physics-container {
    position: relative;
    width: 100%;
    height: 50vh;
    /* adjust as needed */
    overflow: hidden;
    pointer-events: auto;
}

/* Floating container */
.object-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.object {
    position: absolute;
    width: max-content;
    font-size: 1.5rem;
    font-weight: 500;
    background-color: #25283b;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 10rem;
    cursor: grab;
    user-select: none;
    z-index: 2;
}

.object:active {
    cursor: grabbing;
}

/* ✅ Hide only floating objects on mobile */
@media (max-width: 768px) {
    .object-container {
        display: none;
    }

    .physics-container {
        height: auto;
    }
}

.physics-container .last-page {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    text-align: center;
    margin-top: 50px;
}

.physics-container .last-page a {
    text-decoration: underline;
    color: inherit;
    font-size: 2rem;
    display: inline-block;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.physics-container .last-page a:hover {
    transform: scale(1.05);
}