/* Font Faces */

/* Thunder LC Variants */
@font-face {
    font-family: 'Thunder';
    src: url('fonts/Thunder-SemiBoldLC.ttf') format('truetype');
    font-weight: 600;
    /* SemiBold */
    font-style: normal;
}

/* Roboto Variants */
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

:root {
    /* --- Design System: Color Tokens --- */
    --orange-10: #FCEEE9;
    --orange-20: #F7D5C9;
    --orange-30: #F1B39D;
    --orange-40: #EA9071;
    --orange-50: #E36D45;
    --orange-60: #D34D20;
    --orange-70: #A83D1A;
    --orange-80: #7C2D13;

    --gray-10: #F6F4F4;
    --gray-20: #ECEAEA;
    --gray-30: #DBD8D7;
    --gray-40: #B4AEAC;
    --gray-50: #837A77;
    --gray-60: #4E4846;
    --gray-70: #362E2B;
    --gray-80: #181818;

    --color-text-main: var(--gray-20);
    --color-text-secondary: var(--gray-60);
    --color-text-third: var(--orange-50);
    --color-bg: var(--gray-80);
    --color-primary: var(--orange-60);

    --font-header: 'Thunder', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --spacing-unit: 1rem;
}

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

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    overflow: hidden;
    line-height: 1.4;
    height: 100%;
}

/* --- Typography Tokens --- */

/* Headers (Thunder SemiBold LC) */
.text-header-128 {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 128px;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.text-header-96 {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 96px;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.text-header-64 {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 64px;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.text-header-48 {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.text-header-36 {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

/* Subheaders (Roboto) */
.text-subheader-40-bold {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 40px;
    line-height: auto;
}

.role {
    color: var(--gray-80);
 }
.text-subheader-36-bold {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 36px;
    line-height: auto;
}
.text-subheader-16{
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    line-height: auto;
}
.text-subheader-40-bold-real {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 40px;
    line-height: auto;
}

.text-subheader-24-extrabold {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 24px;
    line-height: auto;
}

.text-subheader-24-bold {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 24px;
    line-height: auto;
}

.text-subheader-24-medium {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 24px;
    line-height: auto;
}

/* Body (Roboto) */
.text-body-24-bold {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
}

.text-body-24-semibold {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
}

.text-body-24-regular {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
}

.text-body-16-bold {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
}

.text-body-16-semibold {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}

.text-body-16-regular {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}

.text-body-14-bold {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
}

.text-body-14-semibold {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
}

.text-body-14-regular {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
}

.text-body-12-bold {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 12px;
    line-height: 18px;
}

.text-body-12-semibold {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    line-height: 18px;
}

.text-body-12-regular {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
}

/* Button */
.text-button-16-medium {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    line-height: normal;
}

/* Link */
.text-link-16-bold {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    line-height: 32px;
    text-decoration: underline;
}


/* --- Layout & Components --- */

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--gray-80);
    padding: 28px;
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.fixed-header .text-header-48 {
    transition: font-size 0.3s ease, color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Header scrolled state */
.fixed-header.scrolled {
    padding: 14px 28px;
    background-color: white;
}

.fixed-header.scrolled .text-header-48 {
    color: var(--gray-60);
    font-size: 32px;
}

/* Scroll Snap Container */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    background-color: white;
}

.scroll-container::-webkit-scrollbar {
    width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
    background: var(--gray-70);
}

.scroll-container::-webkit-scrollbar-thumb {
    background: var(--gray-40);
    border-radius: 4px;
}

/* Snap Sections */
.snap-section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-section {
    padding-top: 160px;
    background-color: var(--gray-80);
}

.works-section {
    padding-top: 160px;
    justify-content: flex-start;
    background-color: white;
    transition: padding-top 0.3s ease;
}

.works-section.scrolled {
    padding-top: 60px;
}

.container {
    width: 100%;
    padding: 0 28px;
}

/* Header */

.logo {
    display: flex;
    align-items: center;
}

/* Navigation HStack */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 48px;
}

nav a {
    text-decoration: none;
    color: var(--color-text-main);
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--color-primary);
}

/* Status Section */
.status-hstack {
    color: var(--gray-60);
}

.status-hstack span {
    font-style: italic;
}

/* Decorative Bars */
.art-bars {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bar {
    width: 100%;
    display: block;
}

.bar-1 {
    height: 4px;
    background-color: var(--orange-10);
}

.bar-2 {
    height: 8px;
    background-color: var(--orange-20);
    opacity: 1;
}

.bar-3 {
    height: 16px;
    background-color: var(--orange-30);
}

.bar-4 {
    height: 24px;
    background-color: var(--orange-40);
}

.bar-5 {
    height: 42px;
    background-color: var(--orange-50);
}

.bar-6 {
    height: 80px;
    background-color: var(--orange-60);
}

/* Hero Content */
.hero-content {
    padding-bottom: 28px;
}

.hero-title {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-description {
    max-width: 600px;
    color: var(--gray-50);
}

/* Responsive Overrides */
/*
   NOTE: Typography responsiveness should technically be handled by responsive tokens or media queries modifying the tokens.
   For now, we will override specific classes if needed, or rely on the HTML classes to be swapped via JS (complex) or media queries here.
   But since we use utility classes in HTML, we might need responsive utility classes like 'md:text-header-64'.
   Given the setup, simpler approach is maintaining basic responsive scaling here for the MAIN structural components if they don't break the rules.
   However, strictly speaking, 'text-header-48' implies 48px ALWAYS.
   Adjusting approach: Retain component-level media queries for layout reflows, but avoid overriding font-size unless necessary or if the token system allows responsive behavior.
   User asked for specific token application. I will leave resizing logic minimal or as overrides to the utility if essential for mobile (like hero title not overflowing).
*/

@media (max-width: 1024px) {
    .logo-line {
        width: 100px;
    }

    /* We might need to manually scale down very large headers on tablet if 128px/96px is too big.
       Can override the component for safety.
    */

}

@media (max-width: 768px) {
    header {
        /* flex-direction: column; */
        /* align-items: flex-start; */
        /* gap: 2rem; */
    }

    .logo-line {
        display: none;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-title {
        flex-direction: column;
        gap: 0;
    }

    .bar-6 {
        height: 50px;
    }
}

/* Utility Class Helpers */
.uppercase {
    text-transform: uppercase;
}

/* --- Carousel Styles --- */
.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.carousel-wrapper {
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    height: 100%;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}


.slide-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: background-color 0.3s ease;
}

.slide-overlay {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 358px;
    margin: auto 10vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.overlay-subtitle{
    color: var(--gray-50);

}

.slide-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    padding: 1rem 2rem;
    color: white;
    background-color: transparent;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 10;
    pointer-events: none;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.role-tag {
    color: var(--Grayscale-20, #ECEAEA);
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 1px;
    padding: 4px 12px;
    background-color: var(--orange-60);
    width: auto;
}
.slide-content:hover .slide-btn {
    opacity: 1;
    background-color: var(--orange-60);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 20;
}

.project-label {
    color: var(--gray-40);
}

.project-name {
    color: white;
    margin: 0;
}

.project-subtitle {
    color: var(--gray-40);
    margin: 0;
}

.project-description {
    color: var(--gray-50);
    line-height: 1.6;
}

.view-project-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    margin-top: 16px;
    align-self: flex-start;
}

.carousel-btn {
    position: absolute;
    padding: 0 28px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 30;
}

.carousel-btn:hover {
    opacity: 0.6;
}

.carousel-btn img {
    width: 19px;
    height: 31px;
    display: block;
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-60);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--orange-60);
}

.carousel-dot:hover {
    background-color: var(--gray-40);
}

.carousel-titles {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 8px;
    padding: 28px;
}

.carousel-title-btn {
    background: transparent;
    border: none;
    color: var(--gray-50);
    font-family: var(--font-header);
    font-size: 48px;
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.carousel-title-btn.active {
    color: var(--gray-80);
}

.carousel-title-btn:hover {
    color: var(--gray-80);
}

.selected-work {
    color: var(--orange-50);
}
