/* project-base.css */
:root {
    --primary-bg: #050505;
    --text-color: #ffffff;
    --accent: #ff3333;
    --font-display: 'Clash Display', sans-serif; /* Fallback if not loaded */
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-color);
    margin: 0;
    font-family: var(--font-body);
}

/* Hero Section */
.project-immersive-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.4;
    filter: contrast(1.2) grayscale(0.2);
    transition: all 1s ease;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content-layer {
    position: relative;
    z-index: 2;
    text-align: center;
}

.intrusive-title {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    -webkit-text-fill-color: transparent;
    font-size: clamp(4rem, 15vw, 12rem);
    line-height: 0.85;
    text-transform: uppercase;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.05em;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    z-index: 10;
    mix-blend-mode: exclusion;
}

.intrusive-title:hover {
    color: #fff;
    -webkit-text-stroke: 0px transparent;
    transform: scale(1.05) skewX(-5deg);
}

.intrusive-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.4rem);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.project-content-section {
    padding: 8rem 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.content-grid-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .content-grid-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.content-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--accent);
    display: block;
}

.content-body h3 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.content-body p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #a0a0a0;
    margin-bottom: 1.5rem;
}

/* Tech Stack */
.tech-stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tech-item {
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    font-size: 0.9rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--accent);
    background: rgba(255, 51, 51, 0.1);
    transform: translateY(-2px);
}

/* Next Project Nav */
.next-project-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 10rem 0;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.next-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: #666;
    margin-bottom: 1rem;
    z-index: 2;
}

.next-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    z-index: 2;
    -webkit-text-stroke: 1px #333;
    color: transparent;
    transition: all 0.5s ease;
}

.next-project-trigger:hover .next-title {
    color: #fff;
    -webkit-text-stroke: 0px transparent;
}

/* Sliding Window Effect */
.sliding-window {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.next-project-trigger:hover .sliding-window {
    bottom: 0;
}

.window-content {
    max-width: 40%;
}

.window-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.window-desc {
    color: #777;
}

.window-image {
    width: 45%;
    height: 70%;
    object-fit: cover;
    border-radius: 12px;
}

/* Images */
.emerging-img {
    width: 100%;
    filter: grayscale(1);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.emerging-img:hover {
    filter: grayscale(0);
    transform: scale(1.02) translateY(-10px);
    border-color: rgba(255, 51, 51, 0.3);
}

/* Nav & Footer */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    color: #fff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
}

.footer {
    padding: 4rem 0;
    background: #000;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
}

.footer-logo {
    text-decoration: none;
    color: #fff;
    font-weight: 900;
}
