/* Color Palette & Variables */
:root {
    --bg-main: #0b132b;        /* Deep space blue */
    --bg-card: #111a36;        /* Subtle dark blue contrast for widgets */
    --bg-sidebar: #060b18;     /* Ultra-dark crisp sidebar */
    --text-primary: #f4f4f9;   /* Off-white readable text */
    --text-muted: #8e9aaf;      /* Muted slate blue for details */
    --accent: #00f5d4;          /* Glowing neon teal */
    --border: rgba(255, 255, 255, 0.06);
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR LAYOUT */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
}

.profile-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* System Status Glow Widget */
.status-widget {
    margin-top: 24px;
    background-color: rgba(0, 245, 212, 0.05);
    border: 1px solid rgba(0, 245, 212, 0.15);
    padding: 10px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

.status-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
}

/* Navigation Links */
.nav-menu {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--text-primary);
    border-left: 2px solid var(--accent);
    padding-left: 8px;
}

.sidebar-footer {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
}

.sidebar-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.sidebar-footer a:hover {
    color: var(--accent);
}

/* MAIN DASHBOARD PANEL */
.main-content {
    flex: 1;
    padding: 60px 80px;
    max-width: 1200px;
}

.dashboard-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

/* Cards & Grid Styling */
.metrics-grid, .expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.metric-card, .expertise-card, .project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.metric-card:hover, .expertise-card:hover, .project-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.metric-card h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.metric-value {
    font-size: 1.05rem;
    font-weight: 500;
}

/* Project Specific Cards */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.version-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-muted);
}

.project-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    background-color: rgba(0, 245, 212, 0.05);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(0, 245, 212, 0.1);
}

.project-bullets {
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-bullets li {
    margin-bottom: 6px;
}

.expertise-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.expertise-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .main-content {
        padding: 40px 24px;
    }
}
/* --- PROJECT DETAIL PAGE STYLES --- */

/* Action Buttons */
.btn-primary {
    display: inline-block;
    background-color: rgba(0, 245, 212, 0.1);
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-top: 16px;
}

.btn-primary:hover {
    background-color: var(--accent);
    color: var(--bg-main);
}

/* Screenshot Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.screenshot-wrapper {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.screenshot-wrapper:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 245, 212, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 245, 212, 0.1);
}

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    /* This subtle border separates dark app screenshots from the dark background */
    border: 1px solid rgba(255, 255, 255, 0.05); 
}

.screenshot-caption {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Responsive Video Container */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}