/* =========================================
   RESET & BASE
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    /* Updated to white */
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   HEADER STYLES
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
}

.header-inner {
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Allow clicks to pass through empty space */
    background-color: rgba(255, 255, 255, 0);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 32px 24px;
    pointer-events: none;
    /* Ensure container passes clicks */
}

/* Re-enable interaction for actual controls */
.logo-container,
nav {
    pointer-events: auto;
}

/* Logo Styles */
.logo-container {
    width: 104px;
    height: 104px;
    /* Square */
    flex-shrink: 0;
    position: relative;
    margin-left: -29px;
    /* Optical alignment */
    display: block;
    /* Ensure anchor behaves like block */
    text-decoration: none;
    color: inherit;
}

.logo-container svg {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

/* Logo Font Switcher */
.logo-alt {
    display: none;
    /* Hidden by default */
    font-size: 36px;
    /* Much smaller size */
    font-weight: bold;
    color: #F24405 !important;
    line-height: 1;
    text-align: center;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    position: absolute;
    /* Overlay exact position */
    top: 0px;
    /* Adjust vertical center */
    left: 0px;
    /* Adjust horizontal center */
}

.logo-text {
    fill: #231f20;
    font-family: Bauhaus93, 'Bauhaus 93';
    font-size: 272px;
    transition: fill 0.2s ease;
}

.logo-container:hover .logo-text {
    fill: #F24405;
}

/* Navigation Styles */
nav {
    display: flex;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.07px;
    color: black;
    line-height: 1.45;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

/* Custom Property Definition for Animation */
@property --angle-1 {
    syntax: "<angle>";
    inherits: false;
    initial-value: -75deg;
}

@property --angle-2 {
    syntax: "<angle>";
    inherits: false;
    initial-value: -45deg;
}

nav .nav-item {
    cursor: pointer;
    display: block;
    white-space: nowrap;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;

    /* Solid White Button Logic */
    color: inherit;
    /* Black by default */
    padding: 12px 24px;
    border-radius: 999vw;
    background: transparent;
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

nav .nav-item:hover {
    color: #F24405;
    /* Orange text */
    background: transparent;
    /* Background handled by pseudo */
    transform: scale(0.975);
}

/* Water Drop / Liquid Wrap Animation (Directional) */
nav .nav-item::before {
    content: "";
    display: block;
    /* Ensure it's active */
    position: absolute;
    inset: 0;
    border-radius: 999vw;
    background: #ffffff;
    /* Solid White */
    z-index: -1;

    /* Clip path circle starts at cursor position (--x, --y) with 0 size */
    clip-path: circle(0% at var(--x, 50%) var(--y, 50%));
    /* Need to set default just in case JS hasn't run, 50% 50% is center */

    opacity: 1;
    /* Always visible but clipped */
    transform: none;
    /* Reset previous scale transform */

    /* Transition clip-path for the expansion */
    transition: clip-path 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    will-change: clip-path;
    /* Optimization hint */
}

nav .nav-item:hover::before {
    /* Expand circle to cover buttons (150% is safe) at the same entry point */
    clip-path: circle(150% at var(--x, 50%) var(--y, 50%));
}

/* Keep complex border hidden */
nav .nav-item::after {
    display: none;
}

/* Header Responsive */
@media (min-width: 800px) {
    .header-content {
        padding: 32px 80px;
        /* Tablet aligned */
        align-items: center;
    }

    nav {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        /* Reduced gap to account for button padding */
        text-align: center;
        margin-right: -20px;
        /* Adjusted for right padding of buttons */
    }
}

@media (min-width: 1280px) {
    .header-content {
        padding: 24px 64px;
        /* Desktop aligned 64px */
    }
}


/* =========================================
   HERO & GLASS BUTTON STYLES
   ========================================= */

@property --angle-1 {
    syntax: "<angle>";
    inherits: false;
    initial-value: -75deg;
}

@property --angle-2 {
    syntax: "<angle>";
    inherits: false;
    initial-value: -45deg;
}

/* Old PG Styles Removed */

/* New Glass Button Implementation */
.glass-wrap {
    z-index: 2;
    pointer-events: none;
    background: 0 0;
    border-radius: 999vw;
    width: fit-content;
    /* Adapted from 280px to auto */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    padding: 0;
}

.glass-shadow {
    --shadow-cuttoff-fix: 2em;
    width: calc(100% + var(--shadow-cuttoff-fix));
    height: calc(100% + var(--shadow-cuttoff-fix));
    top: calc(0% - var(--shadow-cuttoff-fix) / 2);
    left: calc(0% - var(--shadow-cuttoff-fix) / 2);
    filter: blur(clamp(2px, 0.125em, 12px));
    pointer-events: none;
    position: absolute;
    overflow: visible;
}

.glass-shadow:after {
    content: "";
    z-index: 0;
    width: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
    height: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
    inset: 0;
    top: calc(var(--shadow-cuttoff-fix) - 0.5em);
    left: calc(var(--shadow-cuttoff-fix) - 0.875em);
    box-sizing: border-box;
    opacity: 1;
    background: linear-gradient(#0003, #0000001a);
    border-radius: 999vw;
    padding: 0.125em;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: absolute;
    overflow: visible;
    -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
    mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
    -webkit-mask-position: 0 0, 0 0;
    mask-position: 0 0, 0 0;
    -webkit-mask-size: auto, auto;
    mask-size: auto, auto;
    -webkit-mask-repeat: repeat, repeat;
    mask-repeat: repeat, repeat;
    -webkit-mask-clip: content-box, border-box;
    mask-clip: content-box, border-box;
    -webkit-mask-origin: content-box, border-box;
    mask-origin: content-box, border-box;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    -webkit-mask-source-type: auto, auto;
    mask-mode: match-source, match-source;
}

.glass-button {
    --border-width: clamp(1px, 0.0625em, 4px);
    all: unset;
    cursor: pointer;
    -webkit-tap-highlight-color: #0000;
    pointer-events: auto;
    z-index: 3;
    -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    background: linear-gradient(-75deg, #ffffff0d, #fff3, #ffffff0d);
    border-radius: 999vw;
    justify-content: center;
    align-items: center;
    width: auto;
    /* Adapted */
    padding: 0 16px;
    /* Reduced padding for better fit */
    height: 48px;
    /* Reduced height */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    position: relative;
    box-shadow: inset 0 0.125em 0.125em #0000000d,
        inset 0 -0.125em 0.125em #ffffff80, 0 0.25em 0.125em -0.125em #0003,
        inset 0 0 0.1em 0.25em #fff3, 0 0 #fff;
    box-sizing: border-box;
    /* Strict sizing */
}

/* Disabled state */
.glass-button:disabled {
    pointer-events: none;
}

.glass-button:hover {
    -webkit-backdrop-filter: blur(0.01em);
    backdrop-filter: blur(0.01em);
    transform: scale(0.975);
    box-shadow: inset 0 0.125em 0.125em #0000000d,
        inset 0 -0.125em 0.125em #ffffff80, 0 0.15em 0.05em -0.1em #00000040,
        inset 0 0 0.05em 0.1em #ffffff80, 0 0 #fff;
}

.glass-button span {
    -webkit-user-select: none;
    user-select: none;
    color: #0D0D0D;
    /* Updated to requested color */
    text-shadow: 0 0.05em 0.05em #0000000d;
    letter-spacing: -0.18px;
    white-space: nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    /* padding-inline: 1.75em; Removed fixed inline padding */
    font-size: 0.85rem;
    /* Slightly smaller font for fit */
    font-weight: 600;
    /* Increased weight slightly for better read at small size */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    position: relative;
}

/* Grey text variant override - now same as base */
.glass-button.grey-text span {
    color: #0D0D0D;
}

.glass-button:hover span {
    text-shadow: 0.025em 0.025em 0.025em #0000000f;
}

.glass-button span:after {
    content: "";
    z-index: 1;
    width: calc(100% - var(--border-width));
    height: calc(100% - var(--border-width));
    top: calc(0% + var(--border-width) / 2);
    left: calc(0% + var(--border-width) / 2);
    box-sizing: border-box;
    background: linear-gradient(var(--angle-2),
            #fff0 0,
            #ffffff80 40% 50%,
            #fff0 55%);
    z-index: 3;
    mix-blend-mode: screen;
    pointer-events: none;
    background-position: 0;
    background-repeat: no-repeat;
    background-size: 200% 200%;
    border-radius: 999vw;
    transition: background-position 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        --angle-2 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
    position: absolute;
    overflow: clip;
}

.glass-button:hover span:after {
    background-position: 25%;
}

.glass-button:active span:after {
    --angle-2: -15deg;
    background-position: 50% 15%;
}

@media (hover: none) and (pointer: coarse) {

    .glass-button span:after,
    .glass-button:active span:after {
        --angle-2: -45deg;
    }
}

.glass-button:after {
    content: "";
    z-index: 1;
    width: calc(100% + var(--border-width));
    height: calc(100% + var(--border-width));
    inset: 0;
    top: calc(0% - var(--border-width) / 2);
    left: calc(0% - var(--border-width) / 2);
    padding: var(--border-width);
    box-sizing: border-box;
    background: conic-gradient(from var(--angle-1) at 50% 50%,
            #00000080,
            #0000 5% 40%,
            #00000080 50%,
            #0000 60% 95%,
            #00000080),
        linear-gradient(180deg, #ffffff80, #ffffff80);
    box-shadow: inset 0 0 0 calc(var(--border-width) / 2) #ffffff80;
    border-radius: 999vw;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1), --angle-1 0.5s;
    position: absolute;
    -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
    mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
    -webkit-mask-position: 0 0, 0 0;
    mask-position: 0 0, 0 0;
    -webkit-mask-size: auto, auto;
    mask-size: auto, auto;
    -webkit-mask-repeat: repeat, repeat;
    mask-repeat: repeat, repeat;
    -webkit-mask-clip: content-box, border-box;
    mask-clip: content-box, border-box;
    -webkit-mask-origin: content-box, border-box;
    mask-origin: content-box, border-box;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    -webkit-mask-source-type: auto, auto;
    mask-mode: match-source, match-source;
}

.glass-button:hover:after {
    --angle-1: -125deg;
}

.glass-button:active:after {
    --angle-1: -75deg;
}

@media (hover: none) and (pointer: coarse) {

    .glass-button:active:after,
    .glass-button:after,
    .glass-button:hover:after {
        --angle-1: -75deg;
    }
}

.glass-wrap:has(.glass-button:hover) .glass-shadow {
    filter: blur(clamp(2px, 0.0625em, 6px));
    transition: filter 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.glass-wrap:has(.glass-button:hover) .glass-shadow:after {
    top: calc(var(--shadow-cuttoff-fix) - 0.875em);
    opacity: 1;
}

.glass-wrap:has(.glass-button:active) {
    transform: rotateX(25deg);
}

.glass-wrap:has(.glass-button:active) .glass-button {
    box-shadow: inset 0 0.125em 0.125em #0000000d,
        inset 0 -0.125em 0.125em #ffffff80, 0 0.125em 0.125em -0.125em #0003,
        inset 0 0 0.1em 0.25em #fff3, 0 0.225em 0.05em #0000000d,
        0 0.25em #ffffffbf, inset 0 0.25em 0.05em #00000026;
}

.glass-wrap:has(.glass-button:active) .glass-shadow {
    filter: blur(clamp(2px, 0.125em, 12px));
}

.glass-wrap:has(.glass-button:active) .glass-shadow:after {
    top: calc(var(--shadow-cuttoff-fix) - 0.5em);
    opacity: 0.75;
}

.glass-wrap:has(.glass-button:active) span {
    text-shadow: 0.025em 0.1em 0.05em #00000014;
}


/* HERO SECTIONS */
#hero {
    position: relative;
    width: 100%;
    background-color: white;
    overflow: hidden;
    height: 100vh;
    /* Default Mobile */
}

/* Background Image with Fade */
#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Pictures/ProfilePic.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    z-index: 0;
    transition: opacity 1.2s ease;
}

body.scrolled #hero::before {
    opacity: 0;
}

.hero-name {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: #f24405;
    line-height: 1;
    transition: color 0.5s ease-in-out;
    margin-bottom: 0;
    font-size: 72px;
    letter-spacing: -1.44px;
    line-height: 74px;
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #0d0d0d;
    transition: opacity 0.3s ease;
    font-size: 32px;
    letter-spacing: -0.64px;
    line-height: 35px;
    max-width: 301px;
}

.hero-button-container {
    transition: opacity 0.3s ease;
}

/* SCROLLED STATE */
body.scrolled .hero-name {
    color: #cccccc !important;
}

body.scrolled .hero-description {
    opacity: 0;
    pointer-events: none;
}

body.scrolled .hero-button-container {
    opacity: 0;
    pointer-events: none;
}

/* HERO RESPONSIVE */
.hero-inner {
    width: 100%;
    height: 100%;
    padding: 80px 24px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 32px;
    z-index: 1;
    /* Above bg */
    position: relative;
}

.hero-content-group {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

@media (min-width: 800px) {
    .hero-inner {
        padding: 96px 80px 96px 80px;
        gap: 8px;
    }

    .hero-content-group {
        flex-direction: row;
        align-items: flex-end;
        gap: 8px;
    }

    .hero-name {
        font-size: 57px;
        letter-spacing: -1.14px;
        line-height: 56px;
        width: 284px;
    }

    .hero-description {
        font-size: 21px;
        letter-spacing: -0.42px;
        line-height: 27px;
        width: 187px;
    }
}

@media (min-width: 1280px) {
    #hero {
        min-height: 100vh;
        height: auto;
    }

    .hero-inner {
        position: fixed;
        bottom: 40px;
        left: 64px;
        padding: 0;
        width: auto;
        height: auto;
        gap: 48px;
        z-index: 1;
        pointer-events: none;
    }

    .hero-content-group {
        flex-direction: row;
        align-items: flex-end;
        gap: 48px;
    }

    .hero-content-group>* {
        pointer-events: auto;
    }

    .hero-name {
        width: 367px;
        font-size: 72px;
        letter-spacing: -1.44px;
        line-height: 74px;
    }

    .hero-description {
        width: 367px;
        font-size: 32px;
        letter-spacing: -0.64px;
        line-height: 35px;
        height: 144px;
    }

    .hero-button-container {
        margin-bottom: 15px;
    }
}


/* =========================================
   CARDS SECTION
   ========================================= */

.cards-section {
    width: 100%;
    padding: 128px 0 250px 0;
    /* Vertical layout padding */
    display: flex;
    flex-direction: column;
    /* Vertical Layout */
    gap: 0;
    /* Row gaps handled by padding/margins if needed, or stick to flex gap */
    /* Previous gap was 128px in vertical mode. Let's restore that */
    gap: 128px;
    position: relative;
    z-index: 10;
    background-color: transparent;
    /* Scroll offset so anchor link shows cards fully */
    scroll-margin-top: -200px;
}

/* Background Title "Projects" */
.bg-title {
    position: absolute;
    top: 50%;
    /* Vertically centered */
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centered both ways */
    font-size: 10vw;
    /* Reduced size (was 20vw) */
    font-weight: 800;
    color: #E5E5E5;
    z-index: -1;
    /* Behind cards */
    pointer-events: none;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

/* Row Alignments */
.card-row {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    padding: 0 24px;
}

.row-1 {
    justify-content: flex-start;
    padding-left: 5%;
}

.row-2 {
    justify-content: center;
    padding-left: 10%;
}

.row-3 {
    justify-content: flex-end;
    padding-right: 5%;
}

.row-4 {
    justify-content: center;
    padding-left: 20%;
}

.row-5 {
    display: flex;
    justify-content: center;
    transform: translateX(-300px);
    margin-top: -300px;
    pointer-events: none;
    /* Prevent row from blocking clicks */
}

.row-5 .interactive-card {
    pointer-events: auto;
    /* Re-enable clicks on the card itself */
}

@media (min-width: 800px) {
    .card-row {
        padding: 0;
    }

    .row-1 {
        padding-left: 10%;
    }

    .row-2 {
        padding-left: 0;
        justify-content: center;
    }

    .row-3 {
        padding-right: 15%;
        justify-content: flex-end;
    }

    .row-4 {
        padding-left: 10%;
        justify-content: center;
    }
}

/* Interactive Card */
.interactive-card {
    width: 100%;
    max-width: 200px;
    /* Original size */
    flex: initial;
    /* Reset flex behavior */
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    overflow: visible;
    /* Allow title to show outside */
}

.card-mask {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.card-title {
    margin-top: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    /* Matching profile text size */
    font-weight: 500;
    color: #F24405;
    /* Orange */
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-align: left;
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

.interactive-card:hover .card-title {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 1280px) {
    .interactive-card {
        max-width: 280px;
        /* Slightly bigger on desktop */
    }
}


.card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.5s, filter 0.5s;
}

.interactive-card:hover .card-bg {
    transform: scale(1.05);
    filter: brightness(0.6);
}

.card-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.interactive-card:hover .card-overlay {
    opacity: 1;
}

.floating-btn-container {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    will-change: transform;
}

/* Card Button Overrides (Solid White) */
.cards-section .glass-button {
    background: #ffffff;
    backdrop-filter: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    color: #0D0D0D;
}

.cards-section .glass-button:hover {
    transform: scale(0.975);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.cards-section .glass-button span {
    color: #0D0D0D;
    text-shadow: none;
}

.cards-section .glass-button:after,
.cards-section .glass-button span:after {
    display: none;
}


/* =========================================
   FEATURE / PROFILE SECTION
   ========================================= */

@property --pg-angle-1 {
    syntax: "<angle>";
    inherits: false;
    initial-value: -75deg;
}

@property --pg-angle-2 {
    syntax: "<angle>";
    inherits: false;
    initial-value: -45deg;
}

.profile-section {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.profile-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Feature 1 Desktop */
@media (min-width: 1280px) {
    .profile-inner {
        padding: 120px 64px;
        gap: 64px;
    }

    .profile-content-container {
        width: 396px;
    }
}

/* Feature 2 Tablet */
@media (min-width: 800px) and (max-width: 1279px) {
    .profile-inner {
        padding: 96px 32px;
        gap: 32px;
    }

    .profile-content-container {
        width: 406px;
        align-items: flex-start;
    }
}

/* Feature 2 Mobile */
@media (max-width: 799px) {
    .profile-section {
        display: flex;
        justify-content: center;
    }

    .profile-inner {
        padding: 80px 24px;
        gap: 32px;
        align-items: flex-start;
    }

    .profile-content-container {
        width: 100%;
        align-items: flex-start;
    }
}


/* PROFILE CARD */
.profile-card {
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* shadow-sm */
    transition: box-shadow 0.3s;
    flex-shrink: 0;
}

.profile-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* shadow-md */
}

/* Width variants */
@media (min-width: 1280px) {
    .profile-card {
        width: 387px;
    }
}

@media (min-width: 800px) and (max-width: 1279px) {
    .profile-card {
        width: 406px;
    }
}

@media (max-width: 799px) {
    .profile-card {
        width: 100%;
    }
}

.profile-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 308/418;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
}

.profile-img-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover zoom removed - gallery effect handled by JavaScript */

.social-icons {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.social-icon {
    display: block;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    transition: opacity 0.2s;
}

.social-icon:hover {
    opacity: 0.9;
}


/* Unused PG styles removed */

/* TEXT SECTION */
.text-section-title h4 {
    font-weight: 700;
    font-size: 24px;
    color: black;
    letter-spacing: -0.48px;
    line-height: 1.2;
    margin-bottom: 24px;
}

.text-section-body p {
    font-weight: 500;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.55);
    letter-spacing: -0.09px;
    line-height: 1.45;
}


/* =========================================
   CONTACT SECTION
   ========================================= */

.contact-section {
    width: 100%;
    background-color: #ffffff;
    padding: 80px 24px;
    display: flex;
    justify-content: center;
}

.contact-inner {
    width: 100%;
    max-width: 396px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Contact Form */
.contact-form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-form-intro {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0D0D0D;
    letter-spacing: -0.48px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.55);
    letter-spacing: -0.09px;
}

.form-group input,
.form-group textarea {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #0D0D0D;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(0, 0, 0, 0.4);
}

.form-group textarea {
    resize: none;
    min-height: 80px;
}

.contact-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0D0D0D;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 14px 32px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    margin-top: 8px;
}

.contact-submit-btn:hover {
    border-color: rgba(0, 0, 0, 0.4);
    color: #F24405;
}

/* Contact Info Footer */
.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.55);
    letter-spacing: -0.09px;
}

.contact-value {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0D0D0D;
}

.contact-link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #F24405;
}

/* Responsive Contact Section */
@media (min-width: 800px) {
    .contact-section {
        padding: 100px 32px;
    }

    .contact-inner {
        max-width: 406px;
    }

    .contact-info-footer {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1280px) {
    .contact-section {
        padding: 120px 64px;
    }

    .contact-inner {
        max-width: 396px;
    }
}


/* =========================================
   RESUME DRAG-DROP SECTION
   ========================================= */

.resume-drop-section {
    width: 100%;
    padding: 40px 24px 80px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    position: relative;
    min-height: 300px;
}

.resume-drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 600px;
    text-align: center;
}

.resume-drop-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0D0D0D;
    letter-spacing: -0.48px;
    white-space: nowrap;
}

.resume-drop-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.resume-document,
.resume-folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.resume-document svg,
.resume-folder svg {
    width: 36px;
    height: 36px;
    color: #0D0D0D;
    transition: color 0.3s ease, transform 0.3s ease;
}

.resume-document span,
.resume-folder span {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.65);
}

/* Document specific styles - freely draggable */
.resume-document {
    cursor: grab;
    position: absolute;
    left: 30%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    user-select: none;
}

.resume-document:active {
    cursor: grabbing;
}

.resume-document:hover svg {
    color: #F24405;
    transform: scale(1.1);
}

.resume-document.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

/* Folder specific styles */
.resume-folder {
    position: relative;
    padding: 20px;
    border-radius: 16px;
    border: 2px dashed transparent;
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.resume-folder:hover svg {
    color: #F24405;
}

.resume-folder.drag-over {
    border-color: #F24405;
    background-color: rgba(242, 68, 5, 0.08);
    transform: scale(1.05);
}

.resume-folder.drag-over svg {
    color: #F24405;
    transform: scale(1.1);
}

/* Success animation */
.resume-folder.success {
    animation: successPulse 0.6s ease;
}

.resume-folder.success svg {
    color: #22c55e;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.resume-drop-hint {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.45);
}

/* Responsive */
@media (min-width: 800px) {
    .resume-drop-section {
        padding: 40px 32px 100px 32px;
    }

    .resume-document svg,
    .resume-folder svg {
        width: 42px;
        height: 42px;
    }

    .resume-drop-container {
        gap: 120px;
    }
}

@media (min-width: 1280px) {
    .resume-drop-section {
        padding: 40px 64px 120px 64px;
    }

    .resume-document svg,
    .resume-folder svg {
        width: 48px;
        height: 48px;
    }

    .resume-drop-container {
        gap: 160px;
    }
}




/* Jump Animation */
@keyframes jump {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    /* Smaller "happy" bounce */
}

.resume-folder.jump svg {
    animation: jump 0.6s ease-in-out infinite;
    /* Continuous loop */
}

/* =========================================
   FOOTER SECTION
   ========================================= */

footer {
    width: 100%;
    background-color: white;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    /* Top border */
    z-index: 20;
    /* Ensure it lays over fixed hero content */
}

.footer-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text p {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: black;
    line-height: 1.2;
    margin: 0;
}

.footer-socials {
    display: flex;
    align-items: center;
}

.footer-social-link {
    display: block;
    width: 24px;
    height: 24px;
    position: relative;
    color: rgba(0, 0, 0, 0.45);
    /* Default color black 45% */
    transition: color 0.2s;
}

.footer-social-link svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    /* Use text color for fill */
}

/* Hover Effect */
.footer-social-link:hover {
    color: #F24405 !important;
}

/* Responsive Footer */

/* Mobile (< 800px) */
@media (max-width: 799px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 32px 24px;
        gap: 24px;
    }

    .footer-text p {
        font-size: 18px;
        letter-spacing: -0.36px;
    }

    .footer-socials {
        gap: 16px;
    }
}

/* Tablet (800px - 1280px) */
@media (min-width: 800px) and (max-width: 1279px) {
    .footer-inner {
        padding: 64px 32px 150px 32px;
        /* Increased bottom padding */
        align-items: flex-start;
        /* Aligns top/start as per code */
    }

    .footer-text p {
        font-size: 20px;
        letter-spacing: -0.4px;
    }

    .footer-socials {
        gap: 16px;
    }
}

/* Desktop (>= 1280px) */
@media (min-width: 1280px) {
    .footer-inner {
        padding: 64px 64px 200px 80px;
        /* Increased bottom padding to cover fixed text (was 64px) */
    }

    .footer-text p {
        font-size: 24px;
        letter-spacing: -0.48px;
    }

    .footer-socials {
        gap: 24px;
    }
}

/* =========================================
   WORKS PAGE GALLERY
   ========================================= */

.gallery-section {
    width: 100%;
    height: auto;
    /* Allow content to define height */
    min-height: 500px;
    /* Minimum space */
    display: flex;
    align-items: flex-start;
    /* Align top */
    position: relative;
    overflow: visible;
    /* Let gallery scroll handle overflow */
    padding-top: 120px;
    /* Header offset + spacing */
    padding-bottom: 60px;
    /* Reduced from 80px for tighter gallery spacing */
}

/* Subsequent galleries - less top padding since not under header */
.gallery-section-2 {
    padding-top: 0px;
    /* No top padding - closer to first gallery */
}

/* Second gallery images: fit (don't crop) */
.gallery-section-2 .gallery-item img {
    object-fit: contain;
    background-color: #ffffff;
    /* White bg */
}

/* Gallery Container - Allows internal overflow scroll */
.gallery-container {
    width: 100%;
    height: auto;
    /* Allow content to define height */
    min-height: 460px;
    /* Image height + title space */
    overflow: visible;
    /* Let title show */
    overflow-x: clip;
    /* Clip horizontal only */
    position: relative;
}

/* Fixed Title - Stays in place while gallery scrolls */
.gallery-fixed-title {
    position: absolute;
    top: calc(410px + 10px);
    /* Image height (410px) + 10px gap */
    left: 64px;
    /* Desktop: matches header padding */
    z-index: 10;
    font-family: 'Inter', sans-serif;
    color: #0D0D0D;
    font-size: 16px;
    font-weight: 700;
    pointer-events: none;
}

/* Responsive Title Positioning */
@media (max-width: 1279px) {
    .gallery-fixed-title {
        left: 80px;
        /* Tablet: matches header padding */
        top: calc(376px + 10px);
        /* Tablet image height + 10px */
    }
}

@media (max-width: 799px) {
    .gallery-fixed-title {
        left: 24px;
        /* Mobile: matches header padding */
        top: calc(269px + 10px);
        /* Mobile image height + 10px */
    }
}

/* Draggable Container */
.draggable-gallery {
    display: flex;
    align-items: flex-start;
    /* Align images top */
    /* justify-content: start is default */
    gap: 8px;
    /* Reduced to half (was 16px) */

    width: 100%;
    height: auto;

    overflow-x: auto;
    overflow-y: hidden;

    cursor: grab;
    user-select: none;
    /* Prevent selection while dragging */

    /* Scrollbar Hiding */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */

    /* Responsive Padding: Desktop 64px to match header */
    padding-left: 64px;
    padding-right: 64px;
    /* To allow scrolling end */

    /* PERFORMANCE: GPU Acceleration */
    will-change: scroll-position;
    transform: translateZ(0);
    -webkit-overflow-scrolling: touch;
    /* iOS smooth scroll */
}

.draggable-gallery:active {
    cursor: grabbing;
}

/* When dragging, show grabbing cursor on all children too */
.draggable-gallery.active,
.draggable-gallery.active * {
    cursor: grabbing !important;
}

.draggable-gallery::-webkit-scrollbar {
    display: none;
}

/* Gallery Items */
.gallery-item-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Consistently 10px */
    flex-shrink: 0;
    align-items: flex-start;
    /* Ensure title aligns left */
}

/* Sizing Logic - Applied to Wrapper for Stability */
.gallery-item-wrapper:nth-child(1) {
    width: 549px;
}

.gallery-item-wrapper:nth-child(1) .gallery-item {
    height: 410px;
}

.gallery-item-wrapper:nth-child(2) {
    width: 305px;
}

.gallery-item-wrapper:nth-child(2) .gallery-item {
    height: 410px;
}

.gallery-item-wrapper:nth-child(3) {
    width: 506px;
}

.gallery-item-wrapper:nth-child(3) .gallery-item {
    height: 410px;
}

.gallery-item-wrapper:nth-child(4) {
    width: 712px;
}

.gallery-item-wrapper:nth-child(4) .gallery-item {
    height: 410px;
}

.gallery-item-wrapper:nth-child(5) {
    width: 400px;
    /* Reduced width */
}

.gallery-item-wrapper:nth-child(5) .gallery-item {
    height: 410px;
}

/* Styles Updates for inner fill */
.gallery-item {
    width: 100%;
    /* Height handled by specific rules above or default */
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: none;
    transition: transform 0.7s ease-out;
}

/* Hover Scale Effect REMOVED */
/* Rule deleted */

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    pointer-events: none;
    transition: transform 0.7s ease-out;
}

/* Title Styling */
.gallery-title {
    font-family: 'Inter', sans-serif;
    color: #0D0D0D;
    font-size: 16px;
    font-weight: 700;
    padding-left: 4px;
    margin-top: 0;
    /* Reset margin */
    width: 100%;
    /* Ensure it aligns with wrapper width */
}

.gallery-spacer {
    width: 64px;
    /* Matches padding */
    flex-shrink: 0;
}

/* Custom "Explore" Cursor */
.explore-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    pointer-events: none;

    background-color: white;
    color: black;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 99px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);

    display: none;
    /* Hidden by default */
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}

.explore-cursor.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Responsive Media Queries */

/* Tablet (800px - 1279px) */
@media (max-width: 1279px) {
    .draggable-gallery {
        padding-left: 80px;
        /* Tablet Header Padding */
        padding-right: 80px;
    }

    .gallery-spacer {
        width: 80px;
    }

    /* Approx Tablet Sizing */
    .gallery-item-wrapper:nth-child(1) {
        width: 503px;
    }

    .gallery-item-wrapper:nth-child(1) .gallery-item {
        height: 376px;
    }

    .gallery-item-wrapper:nth-child(2) {
        width: 280px;
    }

    .gallery-item-wrapper:nth-child(2) .gallery-item {
        height: 376px;
    }

    .gallery-item-wrapper:nth-child(3) {
        width: 464px;
    }

    .gallery-item-wrapper:nth-child(3) .gallery-item {
        height: 376px;
    }

    .gallery-item-wrapper:nth-child(4) {
        width: 653px;
    }

    .gallery-item-wrapper:nth-child(4) .gallery-item {
        height: 376px;
    }

    .gallery-item-wrapper:nth-child(5) {
        width: 504px;
    }

    .gallery-item-wrapper:nth-child(5) .gallery-item {
        height: 376px;
    }
}

/* Mobile (max 799px) */
@media (max-width: 799px) {
    .draggable-gallery {
        padding-left: 24px;
        /* Mobile Header Padding */
        padding-right: 24px;
        gap: 12px;
    }

    .gallery-spacer {
        width: 24px;
    }

    /* Approx Mobile Sizing */
    /* Heights reduced to fit mobile screens */
    .gallery-item-wrapper:nth-child(1) {
        width: 360px;
    }

    .gallery-item-wrapper:nth-child(1) .gallery-item {
        height: 269px;
    }

    .gallery-item-wrapper:nth-child(2) {
        width: 200px;
    }

    .gallery-item-wrapper:nth-child(2) .gallery-item {
        height: 269px;
    }

    .gallery-item-wrapper:nth-child(3) {
        width: 332px;
    }

    .gallery-item-wrapper:nth-child(3) .gallery-item {
        height: 269px;
    }

    .gallery-item-wrapper:nth-child(4) {
        width: 467px;
    }

    .gallery-item-wrapper:nth-child(4) .gallery-item {
        height: 269px;
    }

    .gallery-item-wrapper:nth-child(5) {
        width: 361px;
    }

    .gallery-item-wrapper:nth-child(5) .gallery-item {
        height: 269px;
    }
}

/* Page Transition Ripple */
.expansion-ripple {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expansion State: Hide Button Background */
.glass-button.is-expanding {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.glass-wrap:has(.is-expanding) .glass-shadow {
    opacity: 0 !important;
    transition: opacity 0.1s;
}

/* Project Close Button */
.project-close-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #0d0d0d;
    transition: background-color 0.2s, transform 0.2s, color 0.2s;
    cursor: pointer;
    text-decoration: none;
    /* Reset link style */
    pointer-events: auto;
    /* Ensure clickable */
}

.project-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
    color: #F24405;
}

/* Party Emoji Animation */
@keyframes popFade {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -150%) scale(1.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -200%) scale(1);
        opacity: 0;
    }
}

.party-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 32px;
    pointer-events: none;
    z-index: 100;
    animation: popFade 1s forwards ease-out;
}

/* Ensure Emoji Visibility */
.resume-folder {
    position: relative !important;
    overflow: visible !important;
}