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

:root {
    --bg-base: #040714;
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.06);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --neon-cyan: #06b6d4;
    --neon-blue: #3b82f6;
    --neon-purple: #a855f7;
    --success: #4ade80;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    padding-top: 100px; /* Offsets fixed navbar globally across all pages */
}

body::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    top: -250px;
    right: -100px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, rgba(59, 130, 246, 0.15) 40%, transparent 70%);
    z-index: -1;
    filter: blur(100px);
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    bottom: -100px;
    left: -200px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(99, 102, 241, 0.1) 50%, transparent 70%);
    z-index: -1;
    filter: blur(90px);
    pointer-events: none;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(4, 7, 20, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

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

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span { color: var(--neon-cyan); }

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.main-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem 2rem;
}

section {
    padding: 4rem 0;
}

h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 1.5rem; }
h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 0.5rem; color: #fff; }
h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; color: #fff; }
h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
h5 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--neon-cyan); }
h6 { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 3rem;
}

.gradient-text {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--neon-cyan);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.badge span {
    width: 6px;
    height: 6px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-cyan);
}

.grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.cta-group { display: flex; gap: 1.2rem; margin-top: 1rem; }
.btn {
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%); color: #fff; box-shadow: 0 4px 20px rgba(6, 182, 212, 0.2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(6, 182, 212, 0.35); }
.btn-secondary { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); color: #fff; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.15); }

.avatar-frame { justify-self: center; position: relative; }
.avatar-glow {
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.02) 100%);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.avatar-glow img { display: block; width: 280px; height: 280px; object-fit: cover; border-radius: 50%; background-color: #0b0f19; }

.mock-dashboard {
    width: 100%;
    height: 180px;
    background: #02040b;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 1.5rem;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.mock-nav { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.04); padding-bottom: 0.4rem; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin: 0.5rem 0; }
.mock-kpi { background: rgba(255,255,255,0.01); border: 1px solid rgba(255,255,255,0.04); padding: 0.4rem; border-radius: 6px; }
.mock-val { font-size: 0.8rem; font-weight: 700; color: #f8fafc; margin-top: 0.1rem; }
.mock-chart { height: 45px; background: rgba(6, 182, 212, 0.03); border: 1px solid rgba(6, 182, 212, 0.08); border-radius: 6px; position: relative; overflow: hidden; }
.mock-bar-container { display: flex; align-items: flex-end; height: 100%; padding: 0 0.4rem; gap: 3px; }
.mock-bar { width: 100%; background: rgba(6, 182, 212, 0.35); border-radius: 2px 2px 0 0; }

.matrix-list { list-style: none; }
.matrix-list li { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 0.95rem; }
.matrix-list li:last-child { border-bottom: none; }
.level-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 700; color: var(--neon-cyan); background: rgba(6, 182, 212, 0.05); padding: 0.15rem 0.4rem; border-radius: 4px; }
.tech-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.tech-badges span { background: rgba(255, 255, 255, 0.04); color: var(--text-secondary); font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 6px; }

.rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 2rem; }
.rec-card { background: rgba(255, 255, 255, 0.01); border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 16px; padding: 2rem; }
.rec-text { color: var(--text-secondary); font-size: 0.95rem; font-style: italic; margin-bottom: 1.5rem; }
.rec-author { display: flex; align-items: center; gap: 1rem; }
.rec-avatar { width: 40px; height: 40px; border-radius: 50%; background: #1e293b; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--neon-cyan); }

.insight-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.insight-card { background: rgba(255,255,255,0.01); border-left: 3px solid var(--neon-blue); padding: 1.2rem; border-radius: 0 12px 12px 0; }
.insight-metric { font-family: 'JetBrains Mono', monospace; font-size: 1.8rem; font-weight: 700; color: #fff; }
.insight-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.2rem; }

.contact-form { display: grid; gap: 1.5rem; max-width: 600px; margin: 0 auto; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; text-align: left; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-control { background: rgba(255,255,255,0.02); border: 1px solid var(--card-border); border-radius: 10px; padding: 1rem; color: #fff; font-family: inherit; font-size: 0.95rem; transition: border-color 0.3s; }
.form-control:focus { outline: none; border-color: var(--neon-cyan); }

@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .cta-group { justify-content: center; }
    .avatar-frame { order: -1; }
    .nav-container { flex-direction: column; gap: 1rem; }
    .rec-grid { grid-template-columns: 1fr; }
}

/* --- Dashboard Gallery Container Visibility Fix --- */
.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 2rem !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.gallery-item {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}
