@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;800&display=swap');

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

:root {
    --bg-color: #000000;
    --bg-secondary: #121212;
    --primary-color: #e50914;
    --primary-hover: #f40612;
    --text-color: #ffffff;
    --text-muted: #a3a3a3;
    --border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Nav */
.project-nav {
    padding: 2rem 8%;
}

.back-btn {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Container & Header */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 5rem;
}

.project-header {
    text-align: center;
    margin-bottom: 4rem;
}

.project-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

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

.project-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Grid System */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Horizontal Project Item */
.project-item {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    gap: 2rem;
    transition: var(--transition);
}

.project-item:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
    background: #1a1a1a;
}

.img-wrapper {
    flex-shrink: 0;
    width: 180px;
    height: 110px;
    overflow: hidden;
    border-radius: 12px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-item:hover .img-wrapper img {
    transform: scale(1.1);
}

.list-items {
    flex-grow: 1;
}

.list-items h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.list-items p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    max-width: 600px;
}

.tech-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-color);
    background: rgba(229, 9, 20, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.demo-link {
    text-decoration: none;
    color: white;
    background: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
    transition: var(--transition);
}

.demo-link:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
}

/* Responsive */
@media (max-width: 850px) {
    .project-item {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }

    .img-wrapper {
        width: 100%;
        height: 200px;
    }

    .demo-link {
        width: 100%;
    }

    .project-header h1 {
        font-size: 2.5rem;
    }
}