.main-content {
    flex: 1;
    padding: 20px 2%;
    padding-top: 60px;
    padding-bottom: 120px;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 280px; /* Sidebar space */
    transition: margin-left 0.3s ease;
}

/* SIDEBAR REVAMP */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: rgba(10, 12, 15, 0.98);
    border-right: 2px solid #00ff9d;
    z-index: 10000001;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 10px 0 30px rgba(0, 255, 157, 0.05);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 255, 157, 0.2);
    position: relative;
}

.sidebar-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #00ff9d;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
    letter-spacing: 4px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 10px;
}

.sidebar-scroll-group {
    flex: 1;
    overflow-y: auto;
    margin-right: -10px;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 157, 0.3) transparent;
}
.sidebar-scroll-group::-webkit-scrollbar { width: 4px; }
.sidebar-scroll-group::-webkit-scrollbar-track { background: transparent; }
.sidebar-scroll-group::-webkit-scrollbar-thumb { background: rgba(0, 255, 157, 0.3); border-radius: 10px; }
.sidebar-scroll-group::-webkit-scrollbar-thumb:hover { background: #00ff9d; }

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: #a3a3a3;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-link::before, .sidebar-link::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    border: 1px solid #00ff9d;
    opacity: 0;
    transition: all 0.3s;
}
.sidebar-link::before { left: 0; border-right: 0; }
.sidebar-link::after { right: 0; border-left: 0; }

.sidebar-link:hover, .sidebar-link.active {
    color: #00ff9d;
    background: rgba(0, 255, 157, 0.05);
    padding-left: 20px;
    padding-right: 20px;
}
.sidebar-link:hover::before, .sidebar-link:hover::after,
.sidebar-link.active::before, .sidebar-link.active::after {
    opacity: 1;
}

.sidebar-link i {
    font-size: 1rem;
    transition: transform 0.3s;
}
.sidebar-link:hover i { transform: scale(1.2); }

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 157, 0.2);
}

/* MOBILE OVERRIDES */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        transition: filter 0.3s ease, opacity 0.3s ease;
    }
    .main-content.blurred {
        filter: blur(20px);
        opacity: 0.4;
        pointer-events: none;
    }
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .sidebar.open {
        transform: translateX(0);
    }
}

/* GRIDS */
.grid-2{display:grid;grid-template-columns:1fr;gap:20px} 
@media (min-width:768px){.grid-2{grid-template-columns:repeat(2,1fr)}}

.services-grid-2x2,.portfolio-grid-2x2,.connect-grid-2x2,.faq-grid-2x2{display:grid;grid-template-columns:1fr;gap:15px;margin-top:10px}
@media (min-width:768px){.services-grid-2x2,.portfolio-grid-2x2,.connect-grid-2x2,.faq-grid-2x2{grid-template-columns:repeat(2,1fr);gap:20px}}

.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:15px 0}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.skill-item {
    border: 1px solid rgba(0, 255, 157, 0.2);
    padding: 10px;
    background: rgba(0, 255, 157, 0.03);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.skill-item:hover {
    background: rgba(0, 255, 157, 0.1);
    border-color: var(--neon-primary);
    transform: translateX(5px);
}

.skill-item i {
    color: var(--neon-primary);
    font-size: 0.9rem;
}

.file-tree {
    font-family: 'Share Tech Mono', monospace;
    line-height: 1.5;
    padding: 20px;
    background: rgba(0, 255, 157, 0.02);
    border: 1px dashed rgba(0, 255, 157, 0.2);
}

.tree-root {
    color: var(--neon-primary);
    font-weight: bold;
    margin-bottom: 5px;
}

.tree-branch {
    position: relative;
    padding-left: 25px;
    color: var(--text-muted);
}

.tree-branch::before {
    content: "├──";
    position: absolute;
    left: 0;
    color: rgba(0, 255, 157, 0.3);
}

.tree-branch.last::before {
    content: "└──";
}

.tree-node {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tree-node i {
    width: 20px;
    text-align: center;
}

.tree-leaf {
    position: relative;
    padding-left: 45px;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.tree-leaf::before {
    content: "│  ├──";
    position: absolute;
    left: 20px;
    color: rgba(0, 255, 157, 0.2);
}

.tree-leaf.last::before {
    content: "│  └──";
}
