:root {
    --bg-color: #05070a;
    --primary-blue: #3b82f6;
    --card-bg: rgba(17, 24, 39, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Grid Background */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

/* Typography & Links */
.text-secondary-light { color: #cbd5e1; }
.text-secondary { color: #94a3b8; }
.tracking-widest { letter-spacing: 0.15em; }

.navbar-nav .nav-link {
    color: #94a3b8;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover { color: white; }

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    color: #10b981;
    font-size: 0.85rem;
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #10b981;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-blue);
    border: none;
}

.btn-dark-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
}

.btn-dark-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Hero Content */
.hero-section {
    min-height: calc(100vh - 100px);
}

/* Code Window Styling */
.code-window {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.code-header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}

.code-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.file-name {
    font-size: 0.8rem;
    color: #64748b;
    font-family: 'Fira Code', monospace;
}

.code-body {
    padding: 24px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-footer {
    padding: 10px 20px;
    font-size: 0.75rem;
    color: #475569;
    border-top: 1px solid var(--border-color);
}

/* Syntax Highlighting Colors */
.c-blue { color: #60a5fa; }
.c-yellow { color: #fbbf24; }
.c-green { color: #34d399; }
.c-orange { color: #f87171; }
.c-white { color: #f8fafc; }

/* About Section Specifics */
.about-section {
    background-color: #0a0c12; /* Matches previous dark theme */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-visual-container {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #11141b;
    padding: 10px;
    border-radius: 20px;
}

/* Optional: Grayscale effect to match the dark aesthetic */
.grayscale-img {
    filter: grayscale(50%);
    transition: filter 0.4s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.grayscale-img:hover {
    filter: grayscale(0%);
}

.leading-relaxed {
    line-height: 1.6;
}

.font-monospace {
    font-family: 'Fira Code', monospace;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* Text Secondary Styling */
.text-secondary {
    color: #94a3b8 !important;
    line-height: 1.8;
}

/* Ensuring the text doesn't feel too cramped on large screens */
@media (min-width: 992px) {
    .content-wrapper {
        padding-left: 2rem;
    }
}

/* Container for each main category */
.stack-column {
    background: rgba(17, 20, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.stack-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.stack-body {
    padding: 20px;
}

/* Individual Skill Row Styling */
.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(5px);
}

.skill-name {
    font-weight: 600;
    color: #f8fafc;
    font-size: 0.95rem;
}

.skill-exp {
    font-size: 0.75rem;
    color: #64748b;
}

/* The "Expert/Advanced" Pill */
.badge-skill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Specific Badge variation for highlights */
.skill-item:hover .badge-skill {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

/* Global Font Helper */
.font-monospace {
    font-family: 'Fira Code', monospace;
}

/* Portfolio Dashboard Styling */
#github-dashboard {
    background-color: #0d1117;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.ls-2 { letter-spacing: 2px; }

.text-primary {
    color: #39d353 !important; /* GitHub Signature Green */
}

.dev-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.gh-heatmap {
    border-radius: 4px;
    background: #0d1117;
    padding: 15px;
    transition: opacity 0.3s;
}

.repo-item {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.repo-item:hover {
    border-color: #39d353;
    transform: translateY(-5px);
    background: #1c2128;
}

.btn-outline-primary {
    color: #39d353;
    border-color: #39d353;
}

.btn-outline-primary:hover {
    background-color: #39d353;
    border-color: #39d353;
    color: #0d1117;
}

/* --- SECTION WRAPPER & GRID BACKGROUND --- */
#projects {
    background-color: #0d1117;
    position: relative;
    overflow: hidden;
}

.bg-grid {
    background-image: radial-gradient(#30363d 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Vignette effect to fade grid at edges */
.bg-grid::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, #0d1117 85%);
    pointer-events: none;
}

.container.position-relative {
    z-index: 2;
}

/* --- BUTTONS & TYPOGRAPHY --- */
.ls-2 { letter-spacing: 2px; }
.ls-1 { letter-spacing: 1px; }
.x-small { font-size: 0.7rem; }
.text-primary { color: #58a6ff !important; }

.btn-archive {
    color: #8b949e;
    border: 1px solid #30363d;
    background-color: #21262d;
    transition: 0.2s;
}

.btn-archive:hover {
    background-color: #30363d;
    color: #f0f6fc;
    border-color: #8b949e;
}

/* --- PROJECT CARDS --- */
.project-card {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: #58a6ff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.project-icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
}

.repo-tag {
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #8b949e;
    padding: 4px 10px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 11px;
}

/* --- LISTS & TAGS --- */
.feature-item {
    font-size: 13px;
    color: #8b949e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.feature-item i {
    font-size: 5px;
    margin-right: 12px;
    color: #3fb950; /* GitHub Green */
}

.tech-tag {
    background-color: #21262d;
    color: #8b949e;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    border: 1px solid #30363d;
}

.border-top-dark {
    border-top: 1px solid #30363d !important;
}

.hover-link:hover {
    color: #58a6ff !important;
}

/* --- CONTACT SECTION (NO GRID) --- */

.bg-dark-custom {
    background-color: #0d1117; /* Solid Dark */
}

/* Card Styling */
.contact-card {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
}

.contact-icon-box {
    width: 42px;
    height: 42px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inputs */
.custom-input {
    background-color: #0d1117 !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
    padding: 12px 16px;
    border-radius: 8px;
}

.custom-input:focus {
    border-color: #58a6ff !important;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1) !important;
    outline: none;
}

.custom-input::placeholder {
    color: #484f58;
}

/* Handshake Button - Matches your image blue */
.btn-primary-handshake {
    background-color: #2f81f7;
    border: 1px solid rgba(240, 246, 252, 0.1);
    color: white;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.btn-primary-handshake:hover {
    background-color: #4493f8;
}

/* Social Buttons */
.btn-social {
    background-color: #21262d;
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.2s;
}

.btn-social:hover {
    background-color: #30363d;
    color: #f0f6fc;
}

/* Helpers */
.ls-2 { letter-spacing: 2px; }
.ls-1 { letter-spacing: 1px; }
.x-small { font-size: 0.7rem; }
.text-primary { color: #58a6ff !important; }
.text-success { color: #3fb950 !important; }
.hover-primary:hover { color: #58a6ff !important; }