/* ===========================
   Shared Portfolio Styles
   Used by all /projects/ pages — matches index.html design system
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* CSS Variables — editorial dark, single-accent, material depth */
:root {
    --bg-primary: #0b0d10;
    --bg-secondary: #0e1116;
    --bg-card: #13161c;
    --bg-elevated: #181c23;
    --accent-primary: #2dd4bf;
    --accent-secondary: #14b8a6;
    --accent-tertiary: #14b8a6;
    --accent-2: #5eead4;
    --accent-ink: #04221e;
    --text-primary: #edeef1;
    --text-secondary: #a8b0bd;
    --text-muted: #6b7480;
    --border-color: #23272f;
    --border-strong: #2f3540;
    --success: #2dd4bf;
    --warning: #f5b942;
    --font-display: 'Space Grotesk', sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1.0625rem;
    line-height: 1.6;
    letter-spacing: 0.1px;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Material: fine grain + a single ambient light field */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(55vw 55vw at 82% -10%, rgba(45, 212, 191, 0.08), transparent 60%),
        radial-gradient(45vw 45vw at -10% 30%, rgba(45, 212, 191, 0.04), transparent 55%);
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Display type voice for headings */
.hero h1,
.section-title,
.content-card h3,
.stat-number {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(14, 16, 20, 0.85);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1.1rem 0;
}

nav .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: -0.3px;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

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

/* Breadcrumb */
.breadcrumb {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--accent-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    padding: 10rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-icon {
    font-size: 3rem;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 18px;
    border: 1px solid var(--border-color);
    filter: saturate(0.7);
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.hero h1 .gradient-text {
    color: var(--accent-primary);
    -webkit-text-fill-color: var(--accent-primary);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 800px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.status-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 1rem;
}

/* Tags */
.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    padding: 0.4rem 0.9rem;
    background: rgba(45, 212, 191, 0.07);
    border: 1px solid rgba(45, 212, 191, 0.22);
    border-radius: 6px;
    color: var(--accent-primary);
    font-weight: 500;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
    display: inline-block;
}

.btn-primary {
    background: var(--accent-primary);
    color: #06201d;
}

.btn-primary:hover {
    background: #5fe6d6;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    padding: 4rem 2rem 8rem;
    position: relative;
    z-index: 1;
}

.main-content .container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Content Cards */
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.content-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content-card p {
    color: var(--text-secondary);
    line-height: 1.9;
}

.content-card ul {
    list-style: none;
    margin-top: 1rem;
}

.content-card li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
}

.content-card li::before {
    content: '\25B8';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

/* Security Checklist Grid */
.security-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.checklist-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.checklist-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.checklist-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.checklist-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Code Block */
.code-block {
    background: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.code-block pre {
    margin: 0;
    color: #c9d1d9;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-primary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Placeholder */
.placeholder {
    background: var(--bg-secondary);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.placeholder h3 {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.placeholder p {
    color: var(--text-muted);
    font-style: italic;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.mobile-nav a:hover { color: var(--accent-primary); }

/* Responsive */
@media (max-width: 768px) {
    .hero-header {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    nav ul {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .security-checklist {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}
