:root {
    --brand-dark: #0f172a;
    --brand-card: #1e293b;
    --brand-primary: #2dd4bf;
    --brand-secondary: #fbbf24;
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 23, 42, 0.85);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--brand-dark);
    color: var(--text-white);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.font-mono {
    font-family: "JetBrains Mono", monospace;
}

.hidden {
    display: none !important;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: var(--brand-dark);
}

.btn-primary:hover {
    background-color: white;
    transform: translateY(-2px);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
}
.btn-primary {
    background-color: var(--brand-primary);
    color: var(--brand-dark);
    border: 1px solid var(--brand-primary);
}
.btn-primary:hover {
    background-color: white;
    border-color: white;
    transform: translateY(-2px);
}
.btn-outline {
    background-color: transparent;
    color: white;
    border: 1px solid #475569;
}
.btn-outline:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* --- NAVBAR --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    background-color: var(--brand-dark);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

nav.scrolled {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: -1px;
}

.nav-links, .desktop-only {
    display: none;
}

@media (min-width: 880px) {
    .nav-links {
        display: flex;
        gap: 2rem;
        font-size: 0.875rem;
    }
    .desktop-only {
        display: block !important;
    }
}

.nav-links a {
    padding: 0.5rem 0.75rem;
}

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

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 880px) {
    .mobile-menu-btn,
    .mobile-menu-panel {
        display: none !important;
    }
}

.mobile-menu-panel {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--brand-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    display: none;
}

.mobile-menu-panel.active {
    display: block;
}

.mobile-menu-panel a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 6px;
}

.mobile-menu-panel a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- BREADCRUMB --- */
.breadcrumb {
    padding: 120px 0 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}
.breadcrumb a:hover {
    color: white;
}
.breadcrumb .active {
    color: var(--brand-primary);
    font-weight: 600;
}

/* --- PROJECT HERO --- */
.project-hero {
    padding: 20px 0 60px;
}
.project-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}
.project-excerpt {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 800px;
    margin-bottom: 2.5rem;
}


/* --- FEATURED BANNER --- */
.featured-banner {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--brand-card);
}
.featured-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition);
}
.featured-banner:hover img {
    opacity: 0.9;
    transform: scale(1.02);
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--brand-dark), transparent);
}

/* --- CONTENT LAYOUT (SPLIT GRID) --- */
.project-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-bottom: 80px;
}
@media (min-width: 1024px) {
    .project-layout {
        grid-template-columns: 2fr 1fr;
    }
}

/* --- MAIN CONTENT (ARTICLE) --- */
.prose {
    color: #cbd5e1;
}
.prose h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 3rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.prose h2:first-child {
    margin-top: 0;
}
.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 2rem 0 1rem;
}
.prose p {
    margin-bottom: 1.5rem;
}
.prose ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: none;
}
.prose ul li {
    position: relative;
    margin-bottom: 0.5rem;
}
.prose ul li::before {
    content: "▹";
    position: absolute;
    left: -1.5rem;
    color: var(--brand-primary);
    font-family: "JetBrains Mono", monospace;
    font-weight: bold;
}
.prose strong {
    color: white;
}

/* Images inside Prose */
.content-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #334155;
    margin: 1.5rem 0;
}
.img-row {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    justify-content: center;
}
.img-row img {
    border-radius: 8px;
    border: 1px solid #334155;
}

/* Table Styling */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}
th {
    background: #1e293b;
    color: white;
    font-weight: 600;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}
td {
    padding: 1rem;
    border-bottom: 1px solid #334155;
    color: #cbd5e1;
}
tr:last-child td {
    border-bottom: none;
}
tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Highlight Box */
.highlight-box {
    background: rgba(45, 212, 191, 0.05);
    border-left: 4px solid var(--brand-primary);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
}
.highlight-box p {
    margin: 0;
    color: white;
}

/* --- DOCUMENT CARDS --- */
.document-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}
@media (min-width: 640px) {
    .document-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.doc-card {
    display: flex;
    align-items: center;
    background: var(--brand-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    transition: var(--transition);
    gap: 1rem;
}
.doc-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.doc-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.doc-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.doc-title {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}
.doc-card:hover .doc-title {
    color: var(--brand-primary);
}

.doc-size {
    color: var(--text-gray);
    font-size: 0.75rem;
    font-family: "JetBrains Mono", monospace;
}
.doc-link-icon {
    color: #475569;
    transition: var(--transition);
}
.doc-card:hover .doc-link-icon {
    color: var(--brand-primary);
}

/* --- SIDEBAR --- */
.sidebar {
    position: sticky;
    top: 100px;
}
.sidebar-card {
    background: var(--brand-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.sidebar-card h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.meta-list {
    list-style: none;
    padding: 0;
}
.meta-item {
    margin-bottom: 1.5rem;
}
.meta-item:last-child {
    margin-bottom: 0;
}
.meta-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}
.meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.tag {
    background: #0f172a;
    border: 1px solid #334155;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    color: var(--text-gray);
}

.team-list {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}
.team-list li {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}
.team-role {
    font-size: 0.7rem;
    color: var(--brand-primary);
    font-family: "JetBrains Mono";
}

/* --- FOOTER --- */
footer {
    background-color: #080808;
    padding: 50px 0 40px;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: block;
}

.footer-text {
    color: var(--text-gray);
    font-size: 0.875rem;
    max-width: 350px;
}

.footer-title {
    color: white;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.footer-links a:hover {
    color: var(--brand-primary);
}

.social-row {
    display: flex;
    gap: 1rem;
}

.social-row a {
    font-size: 1.25rem;
    color: var(--text-gray);
    transition: var(--transition);
}

.social-row a:hover {
    color: var(--icon-color);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; }
}

.footer-bottom p {
    font-size: 0.75rem;
    color: #4b5563;
}
