:root {
    --hover-color: black;
    --background-color: #242424;
}

.open-sans-Jersey {
    font-family: "Open Sans", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

body {
    min-height: 100vh;
    width: 100%;
    background: var(--background-color, #242424);
    color: white;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0;


    font-family: "Jersey 25", serif;
    font-weight: 400;
    font-style: normal;
}

header {
    width: 100%;
    height: 100%;
}


a {
    position: relative;
    text-decoration: none;
    color: white;
    transition: color 200ms ease-in-out;
}

a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease-in-out;
}

a:hover::after {
    transform: scaleX(1);
}

ul {
    padding: 0;
}

li {
    list-style: none;
}


/*////////////////////////// Startup //////////////////////////*/
header>div {
    display: none;
}

.loading {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

body:has(header.loading) {
    overflow: hidden;
}

header.loading .hamburger-btn {
    display: none !important;
}

header.loading ~ main {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

main {
    transition: opacity 0.4s ease;
}

.loading nav {
    display: none;
}

.loading>div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 4em;
    height: 65px;
    overflow: hidden;
}

.textremove {
    animation: flip 750ms cubic-bezier(0.23, 1, 0.32, 1.2) 500ms;
    overflow: hidden;
}


@keyframes flip {
    0% {
        margin-top: 0;
    }

    100% {
        margin-top: -180px;
    }
}


.startup {
    animation: startupBegin 1500ms 1 cubic-bezier(.22, .91, .6, 1.01);
    display: flex;

    align-items: center;
    justify-content: center;
    font-size: 4em;
}

@keyframes startupBegin {
    0% {
        transform: translateY(-1000px) scale(0.2);
        position: absolute;
    }

    100% {
        transform: translateY(0) scale(1);
        position: absolute;
    }

}

.startup nav {
    display: flex;
    justify-content: center;
    width: 100%;

}

.startup ul {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.startup li {
    margin: 0;
    padding: 0;
}

nav a {
    transition: all 200ms;
}

nav a:hover {
    transition: all 200ms;
    transform: scale(1.1);
    cursor: pointer;
}

/*////////////////////////// Startup //////////////////////////*/

/*////////////////////////// Work //////////////////////////*/

#image-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 110px 5vw 60px;
    box-sizing: border-box;
    transition: opacity 0.35s ease, filter 0.35s ease;
}

#image-track.leaving {
    opacity: 0;
    filter: blur(8px);
    pointer-events: none;
}

.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transition: transform 0.4s ease, filter 0.4s ease;
    display: block;
}

.image-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    text-align: center;
    color: white;
    font-size: 2.2rem;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.8);
    width: 85%;
    user-select: none;
    z-index: 2;
}

@media (hover: none) {
    .image-title {
        opacity: 1;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        transform: none;
        padding: 30px 10px 12px;
        box-sizing: border-box;
        font-size: 1.5rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
        text-shadow: none;
    }
}

.image-container:hover img {
    transform: scale(1.1);
    filter: blur(5px) brightness(0.65);
}

.image-container:hover .image-title {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@keyframes projectFadeIn {
    0% {
        opacity: 0;
        transform: translateY(35px) scale(0.97);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes projectFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-25px) scale(0.97);
    }
}

.project {
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--background-color);
    color: white;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    padding: 130px 5vw 80px 5vw;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    z-index: 10;
    animation: projectFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.project.exiting {
    animation: projectFadeOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
}

.project-content {
    max-width: 1050px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* 1. Hero Block */
.project-hero {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

.hero-img-box {
    width: 45%;
    max-width: 460px;
    aspect-ratio: 4 / 3;
    background-color: #2b2b2b;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-img-box img,
.hero-img-box video,
.hero-img-box iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

.hero-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-details h2,
.hero-details h1 {
    font-size: 2.8rem;
    margin: 0;
    line-height: 1.1;
}

.hero-details .pitch {
    font-size: 1.4rem;
    color: #ddd;
    margin: 0;
    line-height: 1.4;
}

.meta-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
    font-size: 1.2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-link-btn {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: black;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
    align-self: flex-start;
    margin-top: 5px;
    font-size: 1.1rem;
}

.project-link-btn:hover {
    transform: translateY(-2px);
    background: #e0e0e0;
}

/* 2-Column Rows */
.project-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
}

.project-row.row-reverse {
    flex-direction: row-reverse;
}

.row-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 1.3rem;
    line-height: 1.5;
}

.row-text h3 {
    font-size: 1.8rem;
    margin: 0;
    color: #fff;
}

.row-text p {
    margin: 0;
    color: #ccc;
}

.row-img-box {
    width: 45%;
    max-width: 460px;
    aspect-ratio: 4 / 3;
    background-color: #2b2b2b;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.row-img-box img,
.row-img-box video,
.row-img-box iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

/* Personal Takeaways */
.project-takeaways {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-takeaways h3 {
    font-size: 2rem;
    margin: 0;
}

.project-takeaways p {
    margin: 0;
    color: #ccc;
}

/* Other Projects Footer */
.other-projects-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.other-projects-section h3 {
    font-size: 1.8rem;
    margin: 0;
}

.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.other-card {
    background: #2b2b2b;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.other-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.other-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

.other-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.other-card:hover img {
    transform: scale(1.06);
    filter: brightness(0.7);
}

.hiddenClass {
    display: none !important;
    pointer-events: none;
}

/*////////////////////////// Work //////////////////////////*/

.hidden {
    display: none;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*////////////////////////// Header Min //////////////////////////*/
.header-min {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: rgba(36, 36, 36, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: none !important;
    transform: none !important;
}

.header-min>.load {
    display: none !important;
}

.header-min nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

.header-min ul {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    margin: 0;
    padding: 0;
}

.header-min li {
    margin: 0;
    padding: 0;
    font-size: 2.2rem;
}

/*////////////////////////// Header Min //////////////////////////*/

/*////////////////////////// Responsive Media Queries //////////////////////////*/

/* Tablets & Small Laptops (max-width: 992px) */
@media (max-width: 992px) {
    .project {
        padding: 100px 4vw 60px 4vw;
    }

    .project-hero,
    .project-row {
        gap: 35px;
    }

    .hero-img-box,
    .row-img-box {
        width: 48%;
    }

    .hero-details h2,
    .hero-details h1 {
        font-size: 2.4rem;
    }

    .hero-details .pitch {
        font-size: 1.25rem;
    }
}

/* Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    #image-track {
        padding: 90px 20px 50px;
        gap: 18px;
    }

    /* ---- Header ---- */
    .header-min {
        height: 70px;
    }

    .hamburger-btn {
        left: 20px;
    }

    .header-min ul {
        justify-content: flex-end;
        padding-right: 25px;
        gap: 20px;
    }

    .header-min li {
        font-size: 1.5rem;
    }

    /* ---- Project pages ---- */
    .project {
        padding: 90px 20px 40px 20px;
    }

    .project-content {
        gap: 50px;
    }

    .project-hero,
    .project-row,
    .project-row.row-reverse {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 22px;
    }

    .hero-img-box,
    .row-img-box {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 10;
    }

    .hero-details {
        align-items: flex-start;
        width: 100%;
    }

    .hero-details h2,
    .hero-details h1 {
        font-size: 2.1rem;
    }

    .hero-details .pitch {
        font-size: 1.15rem;
    }

    .project-link-btn {
        align-self: flex-start;
    }

    .other-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .image-title {
        font-size: 1.8rem;
    }

    /* Menu Overlay Mobile */
    .project-menu-overlay {
        padding: 70px 24px 40px 24px;
        align-items: flex-start;
    }

    .menu-header h2 {
        font-size: 2.2rem;
    }

    .menu-sections {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .menu-group li a {
        font-size: 1.3rem;
    }
}

/* Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    .header-min {
        height: 65px;
    }

    .hamburger-btn {
        left: 12px;
    }

    .hamburger-btn .bar {
        width: 22px;
        height: 2px;
    }

    .header-min ul {
        gap: 12px;
        padding-right: 15px;
    }

    .header-min li {
        font-size: 1.2rem;
    }

    .project {
        padding: 80px 15px 30px 15px;
    }

    .hero-details h2,
    .hero-details h1 {
        font-size: 1.8rem;
    }

    .row-text h3 {
        font-size: 1.5rem;
    }

    .row-text {
        font-size: 1.1rem;
    }

    .meta-block {
        font-size: 1rem;
    }

    .other-projects-grid {
        grid-template-columns: 1fr;
    }

    .image-title {
        font-size: 1.5rem;
    }

    .submit-btn {
        width: 100%;
        text-align: center;
    }
}

/* Contact Form & Skills Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin-top: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-size: 1.1rem;
    color: #ccc;
    font-weight: 600;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: black;
    font-weight: bold;
    font-family: inherit;
    font-size: 1.1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    align-self: flex-start;
}

.submit-btn:hover {
    transform: translateY(-2px);
    background: #e0e0e0;
}

.contact-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.contact-info-card strong {
    color: #fff;
    font-size: 1.3rem;
}

/*////////////////////////// Hamburger & Project Overlay Menu //////////////////////////*/
.hamburger-btn {
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 2001;
    transition: transform 0.2s ease;
}

.hamburger-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.hamburger-btn .bar {
    width: 28px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.project-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 18, 18, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    box-sizing: border-box;
    overflow-y: auto;
}

.project-menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.menu-container {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 20px;
}

.menu-header h2 {
    font-size: 3rem;
    margin: 0;
    color: white;
}

.close-menu-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 3.2rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.close-menu-btn:hover {
    transform: scale(1.2) rotate(90deg);
}

.menu-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.menu-group h3 {
    font-size: 1.6rem;
    color: #888;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.menu-group li a {
    font-size: 1.5rem;
    color: #ddd;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}

.menu-group li a:hover {
    transform: translateX(8px);
}
/* Rows without an image: keep text at a comfortable reading width */
.project-row.text-only {
    justify-content: flex-start;
}

.project-row.text-only .row-text {
    max-width: 800px;
}

/* Language toggle */
.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    color: white;
    font: inherit;
    font-size: 0.7em;
    padding: 2px 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}
