/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    --primary: #a1a1a1;
    --bg-light: #f7f7f7;
    --bg-dark: #050505;
    --surface-dark: #0a0a0a;
    --text-main: #f1f5f9; /* Tailwind slate-100 */
    --text-muted: #9ca3af; /* Tailwind gray-400 */
    
    --font-display: 'Cinzel', serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body ::selection {
    background-color: #ffffff;
    color: #000000;
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

ul, dl {
    list-style: none;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
}

.header__logo-icon {
    font-size: 1.5rem;
}

.header__logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.header__desktop-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    gap: 3rem;
    z-index: 100;
}

.header__desktop-nav--active {
    display: flex;
}

.nav-links {
    flex-direction: column;
    gap: 2.5rem;
}

.nav-links__item {
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links__item {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links__item:hover {
    color: #ffffff;
}

.header__mobile-btn {
    display: block;
    color: #ffffff;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn--outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn--outline:hover {
    border-color: #ffffff;
    background-color: #ffffff;
    color: #000000;
}

.btn--ghost {
    position: relative;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.5s ease;
    overflow: hidden;
}

.btn--ghost:hover {
    background-color: #ffffff;
    color: #000000;
}

.btn--ghost:hover .btn__text {
    font-weight: 700;
}

.btn__text {
    position: relative;
    z-index: 10;
}

.btn-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    transition: color 0.3s ease;
}

.btn-text:hover {
    color: var(--primary);
}

.btn-text__label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.25rem;
    transition: border-color 0.3s ease;
}

.btn-text:hover .btn-text__label {
    border-color: var(--primary);
}

.btn-text__icon {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.btn-text:hover .btn-text__icon {
    transform: translateX(4px);
}

/* ==========================================================================
   Layout & Sections
   ========================================================================== */
.main-content {
    flex-grow: 1;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
}

.hero__overlay--gradient {
    background: linear-gradient(to top, #050505 0%, rgba(5,5,5,0.4) 50%, transparent 100%);
}

.hero__overlay--dark {
    background-color: rgba(0, 0, 0, 0.2);
}

.hero__content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    width: 100%;
    max-width: 80rem;
    margin: 5rem auto 0;
}

.hero__title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    mix-blend-mode: overlay;
    opacity: 0.9;
}

.hero__subtitle-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero__subtitle-wrapper .line {
    height: 1px;
    width: 2rem;
    background-color: rgba(255, 255, 255, 0.5);
}

.hero__subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #d1d5db; /* gray-300 */
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.3);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, -25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50% { transform: translate(-50%, 0); animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

/* Manifesto Section */
.manifesto {
    padding: 6rem 1.5rem;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40vh;
}

.manifesto__container {
    max-width: 56rem;
    text-align: center;
}

.manifesto__text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #ffffff;
    line-height: 1.625;
    letter-spacing: 0.025em;
    font-weight: 300;
}

.manifesto__text--italic {
    color: #6b7280; /* gray-500 */
    font-style: italic;
}

/* Archive Section */
.archive {
    background-color: var(--bg-dark);
    padding-bottom: 4rem;
}

.project {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project__visual {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.project__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1s ease, filter 0.8s ease; /* Added filter transition */
    filter: grayscale(100%); /* Makes the image B&W by default */
}

.project:hover .project__image {
    transform: scale(1.05);
    filter: grayscale(0%); /* Restores full color */
}

.project__image-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s ease;
}

.project:hover .project__image-overlay {
    background-color: transparent;
    backdrop-filter: none;
}

.project__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem;
    background-color: var(--surface-dark);
    position: relative;
}

.project__bg-number {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    user-select: none;
    font-family: var(--font-display);
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    font-weight: 700;
    overflow: hidden;
}

.project__bg-number--left {
    right: auto;
    left: 1rem;
}

.project__details {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 6rem 0;
}

.project__label {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

.project__title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: #ffffff;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.project__divider {
    height: 1px;
    width: 6rem;
    background-color: rgba(255, 255, 255, 0.2);
}

.project__specs {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project__spec-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.project__spec-item dd {
    color: #ffffff;
}

.project__spec-item--last {
    border-bottom: none;
    padding-top: 0.5rem;
    padding-bottom: 0;
}

.project__action {
    margin-top: 2rem;
}


/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 4rem 1.5rem;
}

.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer__brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.1em;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.footer__links a {
    color: #6b7280; /* gray-500 */
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: #ffffff;
}

.footer__copyright {
    color: #4b5563; /* gray-600 */
    font-family: var(--font-mono);
    font-size: 0.625rem; /* 10px */
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

/* ==========================================================================
   Media Queries (Desktop >= 768px & >= 1024px)
   ========================================================================== */
@media (min-width: 768px) {
    .header {
        padding: 1rem 3rem;
    }

    .header__desktop-nav {
        position: fixed;
        display: flex;
        flex-direction: row;
        height: auto;
        gap: 3rem;
        background-color: var(--bg-dark); 
        z-index: 100;
        opacity: 0;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    .nav-links {
        flex-direction: row;
        gap: 2rem;
    }

    .nav-links__item {
        font-size: 0.75rem;
    }

    .header__mobile-btn {
        display: none;
    }

    .hero__title {
        font-size: 5rem;
    }

    .hero__subtitle-wrapper .line {
        width: 4rem;
    }

    .hero__subtitle {
        font-size: 0.875rem;
    }

    .manifesto {
        padding: 6rem 5rem;
    }

    .manifesto__text {
        font-size: 2.25rem;
    }

    .project__title {
        font-size: 3.75rem;
    }

    .project__specs {
        font-size: 0.875rem;
    }
    .archive{
        padding-bottom: auto;
    }
}
@media (min-width: 1024px) {
    .hero__title {
        font-size: 8rem;
    }

    .manifesto__text {
        font-size: 3rem;
    }

    .project {
        flex-direction: row;
        align-items: stretch;
    }

    .project--reversed {
        flex-direction: row-reverse;
    }

    .project__visual {
        width: 60%;
        height: auto;
    }

    .project__content {
        width: 40%;
        padding: 0 5rem;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .project--reversed .project__content {
        border-left: none;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .project__details--right-aligned {
        text-align: left; /* Keep left aligned on large screens as per standard, or switch to right if preferred */
    }

    .project__divider--right {
        align-self: flex-start;
    }

    .project__action--right {
        display: flex;
        justify-content: flex-start;
    }
}